Stronger typying now that we target PHP 7.4
This commit is contained in:
parent
b23ce88be8
commit
71647158d3
5 changed files with 31 additions and 29 deletions
|
@ -27,14 +27,14 @@ class LocaleManager
|
|||
*
|
||||
* @var Locale|null
|
||||
*/
|
||||
private $curLocale;
|
||||
private ?Locale $curLocale = null;
|
||||
|
||||
/**
|
||||
* Session segment used to store session variables.
|
||||
*
|
||||
* @var Segment
|
||||
*/
|
||||
private $sessionSegment;
|
||||
private Segment $sessionSegment;
|
||||
|
||||
/**
|
||||
* Default locale.
|
||||
|
@ -48,7 +48,7 @@ class LocaleManager
|
|||
*
|
||||
* @var Translator
|
||||
*/
|
||||
private $translator;
|
||||
private Translator $translator;
|
||||
|
||||
/**
|
||||
* LocaleManager constructor.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue