Parcourir la source

[Form] Fixing wrong variable name

Ryan Weaver il y a 14 ans
Parent
commit
0681e443d5
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      src/Symfony/Component/Form/AbstractExtension.php

+ 1 - 1
src/Symfony/Component/Form/AbstractExtension.php

@@ -99,7 +99,7 @@ abstract class AbstractExtension implements FormExtensionInterface
         $guesser = $this->loadTypeGuesser();
 
         if (!$guesser instanceof FormTypeGuesserInterface) {
-            throw new UnexpectedTypeException($type, 'Symfony\Component\Form\FormTypeGuesserInterface');
+            throw new UnexpectedTypeException($guesser, 'Symfony\Component\Form\FormTypeGuesserInterface');
         }
 
         $this->guesser = $guesser;