Skip to content

Commit

Permalink
Understand noreturn as NeverType
Browse files Browse the repository at this point in the history
  • Loading branch information
ondrejmirtes committed Mar 8, 2021
1 parent 24c077f commit bce31f0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/PhpDoc/TypeNodeResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,7 @@ private function resolveIdentifierTypeNode(IdentifierTypeNode $typeNode, NameSco
case 'never-return':
case 'never-returns':
case 'no-return':
case 'noreturn':
return new NeverType(true);

case 'list':
Expand Down

0 comments on commit bce31f0

Please sign in to comment.