We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
PHPStan already support narrowing of type inside an array_filter but only with a single return statement.
array_filter
See #482
But PhpStan is lost when using more complex logic.
See https://phpstan.org/r/cde7ee2a-72d9-4f98-9ec4-5e2c7b164da7
The text was updated successfully, but these errors were encountered:
PHPStan is unlikely to understand all logic that's possible to implement inside array_filter callbacks. You can help yourself with a @var PHPDoc annotation: https://phpstan.org/r/103507ea-979c-411c-be29-c4df43e66895
@var
Sorry, something went wrong.
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
No branches or pull requests
Feature request
PHPStan already support narrowing of type inside an
array_filter
but only with a single return statement.See #482
But PhpStan is lost when using more complex logic.
See https://phpstan.org/r/cde7ee2a-72d9-4f98-9ec4-5e2c7b164da7
The text was updated successfully, but these errors were encountered: