Skip to content

Commit 6bbb4d3

Browse files
committed
Use proper return type
1 parent 5fae544 commit 6bbb4d3

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/Behat/Gherkin/Parser.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -750,10 +750,7 @@ private function normalizeStepNodeKeywordType(StepNode $node, array $steps = [])
750750
);
751751
}
752752

753-
/**
754-
* @return no-return
755-
*/
756-
private function rethrowNodeException(NodeException $e): void
753+
private function rethrowNodeException(NodeException $e): never
757754
{
758755
throw new ParserException(
759756
$e->getMessage() . ($this->file ? ' in file ' . $this->file : ''),

0 commit comments

Comments
 (0)