Fix bug in month names similar in English and German
This commit is contained in:
parent
8f612dede1
commit
a6030e4a5f
@ -403,14 +403,14 @@ final class NodaTimeSplitter {
|
||||
|
||||
foreach (self::MONTH_NAMES_ENGLISH as $monthVal => $monthValidNames) {
|
||||
if (self::stri_occurs($datum, $monthValidNames)) {
|
||||
if (!empty($monat)) return [];
|
||||
if (!empty($monat)) break;
|
||||
$monat = (string)$monthVal;
|
||||
}
|
||||
}
|
||||
|
||||
foreach (self::MONTH_NAMES_GERMAN as $monthVal => $monthValidNames) {
|
||||
if (self::stri_occurs($datum, $monthValidNames)) {
|
||||
if (!empty($monat)) return [];
|
||||
if (!empty($monat)) break;
|
||||
$monat = (string)$monthVal;
|
||||
}
|
||||
}
|
||||
|
@ -20,7 +20,6 @@
|
||||
enforceTimeLimit="true"
|
||||
failOnWarning="true"
|
||||
forceCoversAnnotation="false"
|
||||
printerClass="PHPUnit\TextUI\ResultPrinter"
|
||||
processIsolation="true"
|
||||
stopOnError="true"
|
||||
stopOnFailure="true"
|
||||
|
Loading…
Reference in New Issue
Block a user