Skip to content

Commit dcded7d

Browse files
yourwebmakernorberttech
authored andcommitted
Fix return type-hint (#125)
While using the PHPUnit test helper we get this error ``` PHP Fatal error: Declaration of Coduo\PHPMatcher\PHPUnit\PHPMatcherConstraint::additionalFailureDescription($other) must be compatible with PHPUnit\Framework\Constraint\Constraint::additionalFailureDescription($other): string in /home/vagrant/code/vendor/coduo/php-matcher/src/PHPUnit/PHPMatcherConstraint.php on line 11 2018-03-23T23:25:18+00:00 [critical] Fatal Compile Error: Declaration of Coduo\PHPMatcher\PHPUnit\PHPMatcherConstraint::additionalFailureDescription($other) must be compatible with PHPUnit\Framework\Constraint\Constraint::additionalFailureDescription($other): string ``` ``` Fatal error: Declaration of Coduo\PHPMatcher\PHPUnit\PHPMatcherConstraint::additionalFailureDescription($other) must be compatible with PHPUnit\Framework\Constraint\Constraint::additionalFailureDescription($other): string in /home/vagrant/code/vendor/coduo/php-matcher/src/PHPUnit/PHPMatcherConstraint.php on line 11 ```
1 parent bd00e7a commit dcded7d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/PHPUnit/PHPMatcherConstraint.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public function toString() : string
2727
return 'matches the pattern';
2828
}
2929

30-
protected function additionalFailureDescription($other)
30+
protected function additionalFailureDescription($other) : string
3131
{
3232
return $this->matcher->getError();
3333
}

0 commit comments

Comments
 (0)