Fix tests for legacy phpunit versions

This commit is contained in:
Nicolas Grekas 2018-07-26 12:58:07 +02:00
parent af5f7d34ba
commit bf7e25f759
2 changed files with 3 additions and 3 deletions

View File

@ -29,7 +29,7 @@ interface FormInterface extends \ArrayAccess, \Traversable, \Countable
* @throws Exception\LogicException when trying to set a parent for a form with * @throws Exception\LogicException when trying to set a parent for a form with
* an empty name * an empty name
*/ */
public function setParent(self $parent = null); public function setParent(FormInterface $parent = null);
/** /**
* Returns the parent form. * Returns the parent form.

View File

@ -74,7 +74,7 @@ class Profile
/** /**
* Sets the parent token. * Sets the parent token.
*/ */
public function setParent(self $parent) public function setParent(Profile $parent)
{ {
$this->parent = $parent; $this->parent = $parent;
} }
@ -213,7 +213,7 @@ class Profile
/** /**
* Adds the child token. * Adds the child token.
*/ */
public function addChild(self $child) public function addChild(Profile $child)
{ {
$this->children[] = $child; $this->children[] = $child;
$child->setParent($this); $child->setParent($this);