Skip to content

Commit d2f2b6b

Browse files
committed
fix PHPUnit 7 compat
1 parent 638d3f0 commit d2f2b6b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Codeception/Specify/SpecifyTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,14 +63,14 @@ public function count()
6363
*
6464
* @return TestResult
6565
*/
66-
public function run(TestResult $result = null)
66+
public function run(TestResult $result = null) : PHPUnit\Framework\TestResult
6767
{
6868
try {
6969
call_user_func_array($this->test, $this->example);
7070
} catch (AssertionFailedError $e) {
7171
$result->addFailure(clone($this), $e, $result->time());
7272
}
73-
73+
return $result;
7474
}
7575

7676
/**

0 commit comments

Comments
 (0)