diff --git a/src/Symfony/Component/Form/FormInterface.php b/src/Symfony/Component/Form/FormInterface.php index 92e4cba377..253f28dd7a 100644 --- a/src/Symfony/Component/Form/FormInterface.php +++ b/src/Symfony/Component/Form/FormInterface.php @@ -29,7 +29,7 @@ interface FormInterface extends \ArrayAccess, \Traversable, \Countable * @throws Exception\LogicException when trying to set a parent for a form with * an empty name */ - public function setParent(self $parent = null); + public function setParent(FormInterface $parent = null); /** * Returns the parent form. diff --git a/src/Symfony/Component/HttpKernel/Profiler/Profile.php b/src/Symfony/Component/HttpKernel/Profiler/Profile.php index 490f406e26..c21c9d38a3 100644 --- a/src/Symfony/Component/HttpKernel/Profiler/Profile.php +++ b/src/Symfony/Component/HttpKernel/Profiler/Profile.php @@ -74,7 +74,7 @@ class Profile /** * Sets the parent token. */ - public function setParent(self $parent) + public function setParent(Profile $parent) { $this->parent = $parent; } @@ -213,7 +213,7 @@ class Profile /** * Adds the child token. */ - public function addChild(self $child) + public function addChild(Profile $child) { $this->children[] = $child; $child->setParent($this);