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 aca6493 + 42c57b2 commit d29e6bb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Neos.Flow/Classes/I18n/Cldr/Reader/NumbersReader.php
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 d29e6bb

Please sign in to comment.