From 614b8d68a85e8cd3aa7e602746d42f1f3583e19a Mon Sep 17 00:00:00 2001 From: Erwan Date: Tue, 6 Oct 2020 19:08:19 +0200 Subject: [PATCH] [String][AsciiSlugger] Fix typo --- src/Symfony/Component/String/Slugger/AsciiSlugger.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Symfony/Component/String/Slugger/AsciiSlugger.php b/src/Symfony/Component/String/Slugger/AsciiSlugger.php index c6ddbdfcc6915..55b441aca2939 100644 --- a/src/Symfony/Component/String/Slugger/AsciiSlugger.php +++ b/src/Symfony/Component/String/Slugger/AsciiSlugger.php @@ -72,7 +72,7 @@ class AsciiSlugger implements SluggerInterface, LocaleAwareInterface public function __construct(string $defaultLocale = null, $symbolsMap = null) { if (null !== $symbolsMap && !\is_array($symbolsMap) && !$symbolsMap instanceof \Closure) { - throw new \TypeError(sprintf('Argument 2 passed to "%s()" must be array, Closure or null, "%s" given.', __METHOD__, \gettype($symbolMap))); + throw new \TypeError(sprintf('Argument 2 passed to "%s()" must be array, Closure or null, "%s" given.', __METHOD__, \gettype($symbolsMap))); } $this->defaultLocale = $defaultLocale;