Skip to content

Add support for never type #129

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
jaapio opened this issue Sep 17, 2021 · 1 comment
Closed

Add support for never type #129

jaapio opened this issue Sep 17, 2021 · 1 comment

Comments

@jaapio
Copy link
Member

jaapio commented Sep 17, 2021

php 8.1 adds the never keyword for methods that do not return.

function method(): never {
   exit(1);
}

New type must be added to the type-resolver. Which should be enough to have support in all phpDocumentor libraries.

@jaapio
Copy link
Member Author

jaapio commented Sep 17, 2021

fixed by #130

@jaapio jaapio closed this as completed Sep 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant