소스 검색

Merge remote branch 'jmikola/patch-1'

* jmikola/patch-1:
  [Form] Refer to FormView explicitly in its own getParent() type-hint
Fabien Potencier 14 년 전
부모
커밋
23235d8513
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/Symfony/Component/Form/FormView.php

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

@@ -120,7 +120,7 @@ class FormView implements \ArrayAccess, \IteratorAggregate, \Countable
      *
      * @param FormView $parent The parent view
      */
-    public function setParent(self $parent = null)
+    public function setParent(FormView $parent = null)
     {
         $this->parent = $parent;
     }