Skip to content

Commit

Permalink
update setDI / getDI function header
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Vasel committed Jul 22, 2020
1 parent bec82ad commit 0c154e9
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Library/Phalcon/Test/Traits/UnitTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

/**
Expand All @@ -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();
Expand Down

0 comments on commit 0c154e9

Please sign in to comment.