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
kdambekalns committed Feb 14, 2020
2 parents 25e06fa + 3635f64 commit 404b066
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Classes/I18n/Cldr/Reader/DatesReader.php
Original file line number Diff line number Diff line change
Expand Up @@ -261,8 +261,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];
}

$model = $this->cldrRepository->getModelForLocale($locale);
Expand Down

0 comments on commit 404b066

Please sign in to comment.