Allow arrow functions, change callable parameter definitions to callable():mixed #3989
Unanswered
gisostallenberg
asked this question in
Features
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I know the callable parameter definitions are no hard restriction, but my static analyzer (PHPStan) reports this as an issue:
because by default an arrow function returns from the function body.
Changing the parameter definitions of callables like this, would solve that problem:
If you'd accept, I'll make a PR.
Beta Was this translation helpful? Give feedback.
All reactions