File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
src/Codeception/Constraint Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ protected function matches($nodes): bool
42
42
* @param string $selector
43
43
* @param ComparisonFailure|null $comparisonFailure
44
44
*/
45
- protected function fail ($ nodes , $ selector , ComparisonFailure $ comparisonFailure = null ): void
45
+ protected function fail ($ nodes , $ selector , ComparisonFailure $ comparisonFailure = null ): never
46
46
{
47
47
if (!$ nodes ->count ()) {
48
48
throw new ElementNotFound ($ selector , 'Element located either by name, CSS or XPath ' );
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ protected function matches($nodes): bool
24
24
* @param string $selector
25
25
* @param ComparisonFailure|null $comparisonFailure
26
26
*/
27
- protected function fail ($ nodes , $ selector , ComparisonFailure $ comparisonFailure = null ): void
27
+ protected function fail ($ nodes , $ selector , ComparisonFailure $ comparisonFailure = null ): never
28
28
{
29
29
if (!$ this ->string ) {
30
30
throw new ExpectationFailedException (
You can’t perform that action at this time.
0 commit comments