-
Notifications
You must be signed in to change notification settings - Fork 46
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
Wrong types for assertIsNotNumeric
#124
Comments
I don't get it - in my opinion PHPStan is right, that string is not numeric which means the assert will always pass. Which means you can delete that line, the test is useless. |
@ondrejmirtes Sorry, that example was over-simplified from my actual use case. The actual use case involves calling a function that returns a Also, as you can see in the error message, it's comparing the wrong string. |
I confirm, it's a bug. |
But it's not related to the 2nd arg, it reproduces even without it:
|
The following TestCase will cause PHPStan to report a false positive.
The false positive:
The text was updated successfully, but these errors were encountered: