Skip to content

Commit ca220a1

Browse files
minor #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 #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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy