diff options
| author | Greg Roach <greg@subaqua.co.uk> | 2022-01-22 20:38:01 +0000 |
|---|---|---|
| committer | Greg Roach <greg@subaqua.co.uk> | 2022-01-22 20:39:56 +0000 |
| commit | a90d1d4407b74e8eab725ba8e69124c7bec32292 (patch) | |
| tree | 8a07dccb6ca0a3400c0bb523a6c51ac800f697bd /app | |
| parent | 648a131bc0806ae5f07e109ccf3f66a38f49efeb (diff) | |
| download | webtrees-a90d1d4407b74e8eab725ba8e69124c7bec32292.tar.gz webtrees-a90d1d4407b74e8eab725ba8e69124c7bec32292.tar.bz2 webtrees-a90d1d4407b74e8eab725ba8e69124c7bec32292.zip | |
Fix: #4170 - uninitialized variable error when ext-intl is not installed
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; } } |
