Skip to content

Commit dae58c2

Browse files
authored
Merge pull request #952 from marvasDE/4.0.x
update setDI / getDI function header
2 parents c94cd6c + b5bd544 commit dae58c2

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

Library/Phalcon/Test/Traits/UnitTestCase.php

+3-5
Original file line numberDiff line numberDiff line change
@@ -174,13 +174,11 @@ public function getConfig()
174174
*
175175
* @see Injectable::setDI
176176
* @param DiInterface $di
177-
* @return $this
177+
* @return void
178178
*/
179-
public function setDI(DiInterface $di)
179+
public function setDI(DiInterface $di) : void
180180
{
181181
$this->di = $di;
182-
183-
return $this;
184182
}
185183

186184
/**
@@ -189,7 +187,7 @@ public function setDI(DiInterface $di)
189187
* @see Injectable::getDI
190188
* @return DiInterface
191189
*/
192-
public function getDI()
190+
public function getDI() : DiInterface
193191
{
194192
if (!$this->di instanceof DiInterface) {
195193
return Di::getDefault();

0 commit comments

Comments
 (0)