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

Incorrect uopz_flags signature #9611

Closed
pkly opened this issue Jul 11, 2023 · 3 comments
Closed

Incorrect uopz_flags signature #9611

pkly opened this issue Jul 11, 2023 · 3 comments
Labels

Comments

@pkly
Copy link

pkly commented Jul 11, 2023

Bug report

PHPStan detects an error where there is none as the signature seems to be based on the first example from https://www.php.net/manual/en/function.uopz-flags.php, where as the second one is also valid. ('' for class flags)

Code snippet that reproduces the problem

https://phpstan.org/r/d8a163b2-a3dc-4b6e-987d-b593449e1c87

Expected output

No error

Did PHPStan help you today? Did it make you happy in any way?

No response

@phpstan-bot
Copy link
Contributor

@pkly After the latest push in 1.11.x, PHPStan now reports different result with your code snippet:

@@ @@
-5: Parameter #2 $flags of function uopz_flags expects int, string given.
+No errors

@ondrejmirtes
Copy link
Member

Fixed: phpstan/phpstan-src@917750e

@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 Aug 21, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants