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
https://psalm.dev/r/a7b57656ec
Both asserts should be redundant, as the property is typed, and thus the value is always PHP_INT_MIN <= $value <= PHP_INT_MAX
PHP_INT_MIN <= $value <= PHP_INT_MAX
Refs #9499 (comment)
The text was updated successfully, but these errors were encountered:
I found these snippets:
<?php class C { public int $i = 0; } function f(C $c): void { assert($c->i <= PHP_INT_MAX); assert($c->i >= PHP_INT_MIN); }
Psalm output (using commit 9b00049): No issues!
Sorry, something went wrong.
Ideally we should also catch this: https://psalm.dev/r/2bbda08bb8
<?php class C { public int $i = 0; } function f(C $c): void { $i = $c->i; assert($i <= PHP_INT_MAX); assert($i >= PHP_INT_MIN); }
No branches or pull requests
https://psalm.dev/r/a7b57656ec
Both asserts should be redundant, as the property is typed, and thus the value is always
PHP_INT_MIN <= $value <= PHP_INT_MAX
Refs #9499 (comment)
The text was updated successfully, but these errors were encountered: