Skip to content
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

Invalid db2_num_rows() return type #9429

Closed
morozov opened this issue Jun 12, 2023 · 3 comments · Fixed by phpstan/phpstan-src#2456
Closed

Invalid db2_num_rows() return type #9429

morozov opened this issue Jun 12, 2023 · 3 comments · Fixed by phpstan/phpstan-src#2456
Labels
Milestone

Comments

@morozov
Copy link
Contributor

morozov commented Jun 12, 2023

Bug description

According to the manual, db2_num_rows() can return false. For reference, this is reflected in JetBrains/phpstorm-stubs#1531.

The linked code snippet dumps the return type of db2_num_rows() as int<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

@ondrejmirtes
Copy link
Member

Please send a PR that updates resources/functionMap.php. Thank you.

@ondrejmirtes
Copy link
Member

Fixed: phpstan/phpstan-src#2456

@github-actions
Copy link

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 25, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants