Skip to content

Commit

Permalink
Use proper return type
Browse files Browse the repository at this point in the history
  • Loading branch information
uuf6429 committed Jan 30, 2025
1 parent 5fae544 commit 6bbb4d3
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/Behat/Gherkin/Parser.php
Original file line number Diff line number Diff line change
Expand Up @@ -750,10 +750,7 @@ private function normalizeStepNodeKeywordType(StepNode $node, array $steps = [])
);
}

/**
* @return no-return
*/
private function rethrowNodeException(NodeException $e): void
private function rethrowNodeException(NodeException $e): never
{
throw new ParserException(
$e->getMessage() . ($this->file ? ' in file ' . $this->file : ''),
Expand Down

0 comments on commit 6bbb4d3

Please sign in to comment.