Skip to content

Commit 78fe190

Browse files
Merge branch '7.4' into 8.0
* 7.4: [SecurityBundle] Fix tests on Windows use the empty string instead of null as an array offset pass the empty string instead of null as key to array_key_exists() fix test setup [Validator] Review Turkish translations [Validator] Review Croatian translations [Console] Add #[Input] attribute to support DTOs in commands [Security][SecurityBundle] Dump role hierarchy as mermaid chart [DependencyInjection] Allow `Class::function(...)` and `global_function(...)` closures in PHP DSL for factories [VarExporter] Add support for exporting named closures [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 fix merge [Security] Fix `HttpUtils::createRequest()` when the base request is forwarded map legacy options to the "sentinel" key when parsing DSNs fix setup to actually run Redis Sentinel/Cluster integration tests [Routing] Don't rebuild cache when controller action body changes
2 parents 3bd28ce + 140bb69 commit 78fe190

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)