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
Documentation lists is_long() as an alias of is_int. Checking the type of a variable with is_long gives float instead of int. See: https://psalm.dev/r/a362f0e861 Documentation: https://www.php.net/manual/en/function.is-long (and https://www.php.net/manual/en/aliases.php)
is_long()
is_int
is_long
float
int
The text was updated successfully, but these errors were encountered:
I found these snippets:
<?php /** @param mixed $i */ function takesAnInt($i): void { if (is_int($i)) { /** @psalm-trace $i */ } if (is_long($i)) { /** @psalm-trace $i */ } }
Psalm output (using commit e96a929): INFO: Trace - 8:0 - $i: int INFO: Trace - 11:0 - $i: float
Sorry, something went wrong.
Fixes vimeo#9384
f026226
Successfully merging a pull request may close this issue.
Documentation lists
is_long()
as an alias ofis_int
. Checking the type of a variable withis_long
givesfloat
instead ofint
.See: https://psalm.dev/r/a362f0e861
Documentation: https://www.php.net/manual/en/function.is-long (and https://www.php.net/manual/en/aliases.php)
The text was updated successfully, but these errors were encountered: