Skip to content

Commit bf7e25f

Browse files
Fix tests for legacy phpunit versions
1 parent af5f7d3 commit bf7e25f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Symfony/Component/Form/FormInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ interface FormInterface extends \ArrayAccess, \Traversable, \Countable
2929
* @throws Exception\LogicException when trying to set a parent for a form with
3030
* an empty name
3131
*/
32-
public function setParent(self $parent = null);
32+
public function setParent(FormInterface $parent = null);
3333

3434
/**
3535
* Returns the parent form.

src/Symfony/Component/HttpKernel/Profiler/Profile.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ public function getToken()
7474
/**
7575
* Sets the parent token.
7676
*/
77-
public function setParent(self $parent)
77+
public function setParent(Profile $parent)
7878
{
7979
$this->parent = $parent;
8080
}
@@ -213,7 +213,7 @@ public function setChildren(array $children)
213213
/**
214214
* Adds the child token.
215215
*/
216-
public function addChild(self $child)
216+
public function addChild(Profile $child)
217217
{
218218
$this->children[] = $child;
219219
$child->setParent($this);

0 commit comments

Comments
 (0)