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
According to the manual, db2_num_rows() can return false. For reference, this is reflected in JetBrains/phpstorm-stubs#1531.
db2_num_rows()
false
The linked code snippet dumps the return type of db2_num_rows() as int<0, max>.
int<0, max>
https://phpstan.org/r/c546c3bc-23f9-4779-9d12-d36be4ff43fa
int<0, max>|false
No response
The text was updated successfully, but these errors were encountered:
Please send a PR that updates resources/functionMap.php. Thank you.
resources/functionMap.php
Sorry, something went wrong.
Fixed: phpstan/phpstan-src#2456
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.
Successfully merging a pull request may close this issue.
Bug description
According to the manual,
db2_num_rows()
can returnfalse
. For reference, this is reflected in JetBrains/phpstorm-stubs#1531.The linked code snippet dumps the return type of
db2_num_rows()
asint<0, max>
.Code snippet that reproduces the problem
https://phpstan.org/r/c546c3bc-23f9-4779-9d12-d36be4ff43fa
Expected output
int<0, max>|false
Did PHPStan help you today? Did it make you happy in any way?
No response
The text was updated successfully, but these errors were encountered: