Skip to content

Commit e0a7d47

Browse files
committed
Merge branch '5.2' into 5.3
* 5.2: Wrapping exception js in Sfjs check and also loading base_js Sfjs if needed Fix PHP 8.1 deprecations Add missing deprecation entry [VarDumper] Don't pass null to parse_url()
2 parents d2a6339 + 2e69905 commit e0a7d47

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Slugger/AsciiSlugger.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ public function slug(string $string, string $separator = '-', string $locale = n
103103
$locale = $locale ?? $this->defaultLocale;
104104

105105
$transliterator = [];
106-
if ('de' === $locale || 0 === strpos($locale, 'de_')) {
106+
if ($locale && ('de' === $locale || 0 === strpos($locale, 'de_'))) {
107107
// Use the shortcut for German in UnicodeString::ascii() if possible (faster and no requirement on intl)
108108
$transliterator = ['de-ASCII'];
109109
} elseif (\function_exists('transliterator_transliterate') && $locale) {

0 commit comments

Comments
 (0)