Skip to content

Commit 0c154e9

Browse files
author
Martin Vasel
committed
update setDI / getDI function header
1 parent bec82ad commit 0c154e9

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Library/Phalcon/Test/Traits/UnitTestCase.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -176,11 +176,9 @@ public function getConfig()
176176
* @param DiInterface $di
177177
* @return $this
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)