Skip to content

Commit

Permalink
Merge pull request #952 from marvasDE/4.0.x
Browse files Browse the repository at this point in the history
update setDI / getDI function header
  • Loading branch information
Jurigag authored Jul 28, 2020
2 parents c94cd6c + b5bd544 commit dae58c2
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions Library/Phalcon/Test/Traits/UnitTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -174,13 +174,11 @@ public function getConfig()
*
* @see Injectable::setDI
* @param DiInterface $di
* @return $this
* @return void
*/
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 dae58c2

Please sign in to comment.