Fix tests for legacy phpunit versions
This commit is contained in:
parent
af5f7d34ba
commit
bf7e25f759
|
@ -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.
|
||||
|
|
|
@ -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);
|
||||
|
|
Reference in New Issue