Hotfix (will be included in v2.4.0 release): Fixed a potential problem when the plural form of a translation (e. g. plural forms for user defined quantity units) is NULL

This commit is contained in:
Bernd Bestel 2019-05-10 21:22:53 +02:00
parent 55e5fd7bf1
commit d412b81eae
No known key found for this signature in database
GPG Key ID: 71BD34C0D4891300

View File

@ -123,7 +123,7 @@ class LocalizationService
}
}
public function __n($number, string $singularForm, string $pluralForm)
public function __n($number, string $singularForm, ?string $pluralForm)
{
$this->CheckAndAddMissingTranslationToPot($singularForm);