Skip to content

Commit

Permalink
Merge branch '5.3' into 5.4
Browse files Browse the repository at this point in the history
* 5.3:
  [Ldap] Avoid calling the deprecated getUsername()
  Report the correct package in the deprecation message
  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()
  Invalid copy-paste fix
  • Loading branch information
derrabus committed May 21, 2021
2 parents 0112b71 + e0a7d47 commit b7ac9d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Slugger/AsciiSlugger.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ public function slug(string $string, string $separator = '-', string $locale = n
$locale = $locale ?? $this->defaultLocale;

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

0 comments on commit b7ac9d8

Please sign in to comment.