From bf7e25f759821bbca6c2926047f44fa45bed3ac7 Mon Sep 17 00:00:00 2001 From: Nicolas Grekas Date: Thu, 26 Jul 2018 12:58:07 +0200 Subject: [PATCH] Fix tests for legacy phpunit versions --- src/Symfony/Component/Form/FormInterface.php | 2 +- src/Symfony/Component/HttpKernel/Profiler/Profile.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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);