Skip to content

Commit 099c238

Browse files
committed
Merge branch '6.4' into 7.3
* 6.4: fix test setup [Validator] Review Turkish translations [Validator] Review Croatian translations [Validator] Review translations for Polish (pl) use the empty string instead of null as an array offset Review translations for Chinese (zh_TW) [Serializer] Adjust ObjectNormalizerTest for the accessor method changes from #61097
2 parents de366af + 2cc5089 commit 099c238

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Slugger/AsciiSlugger.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,8 @@ public function slug(string $string, string $separator = '-', ?string $locale =
128128

129129
if (\is_array($this->symbolsMap)) {
130130
$map = null;
131-
if (isset($this->symbolsMap[$locale])) {
132-
$map = $this->symbolsMap[$locale];
131+
if (isset($this->symbolsMap[$locale ?? ''])) {
132+
$map = $this->symbolsMap[$locale ?? ''];
133133
} else {
134134
$parent = self::getParentLocale($locale);
135135
if ($parent && isset($this->symbolsMap[$parent])) {

0 commit comments

Comments
 (0)