From 0c154e98e40c79d186f4289ec54418b5eebcb3b9 Mon Sep 17 00:00:00 2001 From: Martin Vasel Date: Wed, 22 Jul 2020 14:28:56 +0200 Subject: [PATCH 1/2] update setDI / getDI function header --- Library/Phalcon/Test/Traits/UnitTestCase.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Library/Phalcon/Test/Traits/UnitTestCase.php b/Library/Phalcon/Test/Traits/UnitTestCase.php index f4e57253e..67faf8805 100644 --- a/Library/Phalcon/Test/Traits/UnitTestCase.php +++ b/Library/Phalcon/Test/Traits/UnitTestCase.php @@ -176,11 +176,9 @@ public function getConfig() * @param DiInterface $di * @return $this */ - public function setDI(DiInterface $di) + public function setDI(DiInterface $di) : void { $this->di = $di; - - return $this; } /** @@ -189,7 +187,7 @@ public function setDI(DiInterface $di) * @see Injectable::getDI * @return DiInterface */ - public function getDI() + public function getDI() : DiInterface { if (!$this->di instanceof DiInterface) { return Di::getDefault(); From b5bd544d0bba7f87565a85a08080cf9ae65fdb86 Mon Sep 17 00:00:00 2001 From: Martin Vasel Date: Wed, 22 Jul 2020 14:38:01 +0200 Subject: [PATCH 2/2] doc header for UnitTestCase::setDI --- Library/Phalcon/Test/Traits/UnitTestCase.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Phalcon/Test/Traits/UnitTestCase.php b/Library/Phalcon/Test/Traits/UnitTestCase.php index 67faf8805..66d285a66 100644 --- a/Library/Phalcon/Test/Traits/UnitTestCase.php +++ b/Library/Phalcon/Test/Traits/UnitTestCase.php @@ -174,7 +174,7 @@ public function getConfig() * * @see Injectable::setDI * @param DiInterface $di - * @return $this + * @return void */ public function setDI(DiInterface $di) : void {