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