Skip to content

Commit

Permalink
MERGE: Merge branch '5.0' into 5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
albe committed Apr 30, 2020
2 parents 404b066 + 14f834f commit 0b97e17
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Classes/I18n/Cldr/Reader/NumbersReader.php
Original file line number Diff line number Diff line change
Expand Up @@ -223,8 +223,9 @@ public function parseFormatFromCldr(Locale $locale, $formatType, $formatLength =
self::validateFormatType($formatType);
self::validateFormatLength($formatLength);

if (isset($this->parsedFormatsIndices[(string)$locale][$formatType][$formatLength])) {
return $this->parsedFormats[$this->parsedFormatsIndices[(string)$locale][$formatType][$formatLength]];
$parsedFormatIndex = $this->parsedFormatsIndices[(string)$locale][$formatType][$formatLength] ?? '';
if (isset($this->parsedFormats[$parsedFormatIndex])) {
return $this->parsedFormats[$parsedFormatIndex];
}

if ($formatLength === self::FORMAT_LENGTH_DEFAULT) {
Expand Down

0 comments on commit 0b97e17

Please sign in to comment.