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

Take advantage of conditional return types #1218

Closed
2 tasks
canvural opened this issue Apr 25, 2022 · 0 comments · Fixed by #1236
Closed
2 tasks

Take advantage of conditional return types #1218

canvural opened this issue Apr 25, 2022 · 0 comments · Fixed by #1236
Labels
enhancement New feature or request

Comments

@canvural
Copy link
Collaborator

PHPStan 1.6.0 will have conditional return type support.

We could take advantage of this and simplify some code here. We can start by checking:

  • Can we replace any of the existing return type extensions with conditional return types?
  • Can we improve return types of methods/functions with conditional return types?
@canvural canvural added the enhancement New feature or request label Apr 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant