Skip to content
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

Use never return typehint #1654

Merged
merged 2 commits into from Apr 19, 2022
Merged

Use never return typehint #1654

merged 2 commits into from Apr 19, 2022

Conversation

hemberger
Copy link
Contributor

The never return typehint was added in PHP 8.1 and can be used
to indicate that a function will never return.

RFC: https://wiki.php.net/rfc/noreturn_type

The `never` return typehint was added in PHP 8.1 and can be used
to indicate that a function will never return.

RFC: https://wiki.php.net/rfc/noreturn_type
@Seldaek
Copy link
Owner

Seldaek commented Apr 19, 2022

Makes sense but please remove the phpdoc which duplicate it then.

@Seldaek Seldaek added this to the 3.x milestone Apr 19, 2022
These phpdocs are no longer needed because we are using the `never`
return typehint.
@Seldaek Seldaek merged commit 14f39fe into Seldaek:main Apr 19, 2022
@Seldaek
Copy link
Owner

Seldaek commented Apr 19, 2022

Thanks!

@hemberger hemberger deleted the return-never branch April 19, 2022 20:19
@lyrixx lyrixx mentioned this pull request Aug 16, 2022
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

Successfully merging this pull request may close these issues.

None yet

2 participants