diff options
Diffstat (limited to 'app')
| -rw-r--r-- | app/Factories/SlugFactory.php | 2 | ||||
| -rw-r--r-- | app/I18N.php | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/app/Factories/SlugFactory.php b/app/Factories/SlugFactory.php index 6a32d77d98..ba57140be7 100644 --- a/app/Factories/SlugFactory.php +++ b/app/Factories/SlugFactory.php @@ -33,7 +33,7 @@ use function trim; */ class SlugFactory implements SlugFactoryInterface { - private ?Transliterator $transliterator; + private ?Transliterator $transliterator = null; public function __construct() { diff --git a/app/I18N.php b/app/I18N.php index 065bdfe474..95493e136a 100644 --- a/app/I18N.php +++ b/app/I18N.php @@ -209,7 +209,7 @@ class I18N private static Translator $translator; - private static ?Collator $collator; + private static ?Collator $collator = null; /** * The preferred locales for this site, or a default list if no preference. @@ -343,7 +343,6 @@ class I18N } } catch (Exception $ex) { // PHP-INTL is not installed? We'll use a fallback later. - self::$collator = null; } } |
