-
-
Notifications
You must be signed in to change notification settings - Fork 882
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
is_a: if third argument is false then do not allow string in first argument #4371
Comments
we had the same issue today: https://phpstan.org/r/a797fd58-43c7-4db3-a4b9-b6fb892627c9 will put this issue on my todo list |
Adding a conditional parameter in stubs should work (same for
|
it sounds too good to be true. need to try that immediately :-) |
Implemented: phpstan/phpstan-src#1311 |
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. |
Feature request
https://www.php.net/manual/en/function.is-a.php
PHPStan could report that a string is sent in this case:
https://phpstan.org/r/44b40ab5-7c7f-4ced-8048-e084d3d63f1d
The text was updated successfully, but these errors were encountered: