瀏覽代碼

[Form] fixed typo (patch from mgatto)

Fabien Potencier 14 年之前
父節點
當前提交
168a61b9ea
共有 1 個文件被更改,包括 3 次插入4 次删除
  1. 3 4
      src/Symfony/Component/Form/AbstractExtension.php

+ 3 - 4
src/Symfony/Component/Form/AbstractExtension.php

@@ -211,10 +211,9 @@ abstract class AbstractExtension implements FormExtensionInterface
     {
         $this->typeGuesserLoaded = true;
 
-        $this->guesser = $this->loadTypeGuesser();
-
-        if (!$this->guesser instanceof FormTypeGuesserInterface) {
-            throw new UnexpectedTypeException($this->guesser, 'Symfony\Component\Form\FormTypeGuesserInterface');
+        $this->typeGuesser = $this->loadTypeGuesser();
+        if (!$this->typeGuesser instanceof FormTypeGuesserInterface) {
+            throw new UnexpectedTypeException($this->typeGuesser, 'Symfony\Component\Form\FormTypeGuesserInterface');
         }
     }
 }