Fix type error / reference to values now not consistently existing
anymore
This commit is contained in:
		| @@ -504,8 +504,11 @@ final class NodaTimeAutotranslater { | ||||
|             $output = []; | ||||
|             $cases = NodaTimeAutotranslaterLocales::cases(); | ||||
|             foreach ($cases as $tLang) { | ||||
|                 $start_term = self::getTranslations($startTimeInfo)[$tLang->name]; | ||||
|                 $end_term = self::getTranslations($endTimeInfo)[$tLang->name]; | ||||
|                 $startTls = self::getTranslations($startTimeInfo); | ||||
|                 $endTls = self::getTranslations($endTimeInfo); | ||||
|                 if (empty($startTls) || empty($endTls)) return []; | ||||
|                 $start_term = $startTls[$tLang->name]; | ||||
|                 $end_term = $endTls[$tLang->name]; | ||||
|  | ||||
|                 $output[$tLang->name] = \sprintf($tLang->formatYearspanForSprintf(), $start_term, $end_term); | ||||
|             } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user