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

Some mysqli functions always return true #2569

Closed

Conversation

kamil-tekiela
Copy link
Contributor

@kamil-tekiela kamil-tekiela commented Aug 12, 2023

@phpstan-bot
Copy link
Collaborator

You've opened the pull request against the latest branch 1.11.x. If your code is relevant on 1.10.x and you want it to be released sooner, please rebase your pull request and change its target to 1.10.x.

@ondrejmirtes
Copy link
Member

PHPStan already knows this: https://phpstan.org/r/992b11b1-4192-459c-bb23-362f6a4e086e

@kamil-tekiela
Copy link
Contributor Author

It doesn't seem it knows: https://phpstan.org/r/205aa72d-5f1f-476f-b6f0-6f748280140e
Maybe I made some mistake in my PR, but the demo here shows that it thinks the type is bool.

@kamil-tekiela
Copy link
Contributor Author

PR is waiting to be merged php/php-src#11948

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants