Skip to content

Commit ca220a1

Browse files
minor symfony#38443 [String][AsciiSlugger] Fix typo (ErnadoO)
This PR was submitted for the master branch but it was merged into the 5.x branch instead. Discussion ---------- [String][AsciiSlugger] Fix typo | Q | A | ------------- | --- | Branch? | master<!-- see below --> | Bug fix? | no | New feature? | no | Deprecations? | no | Tickets | - | License | MIT | Doc PR | - I guess there was a little mistake on PR symfony#38198 : In exception message it should be `$symbolsMap` instead of `$symbolMap` ;) Commits ------- 614b8d6 [String][AsciiSlugger] Fix typo
2 parents 5c3ba3a + 614b8d6 commit ca220a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/String/Slugger/AsciiSlugger.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ class AsciiSlugger implements SluggerInterface, LocaleAwareInterface
7272
public function __construct(string $defaultLocale = null, $symbolsMap = null)
7373
{
7474
if (null !== $symbolsMap && !\is_array($symbolsMap) && !$symbolsMap instanceof \Closure) {
75-
throw new \TypeError(sprintf('Argument 2 passed to "%s()" must be array, Closure or null, "%s" given.', __METHOD__, \gettype($symbolMap)));
75+
throw new \TypeError(sprintf('Argument 2 passed to "%s()" must be array, Closure or null, "%s" given.', __METHOD__, \gettype($symbolsMap)));
7676
}
7777

7878
$this->defaultLocale = $defaultLocale;

0 commit comments

Comments
 (0)