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

Problem with mutliple parameters in isset #10064

Closed
garak opened this issue Oct 29, 2023 · 3 comments
Closed

Problem with mutliple parameters in isset #10064

garak opened this issue Oct 29, 2023 · 3 comments
Labels
Milestone

Comments

@garak
Copy link

garak commented Oct 29, 2023

Bug report

I have false positives when using isset($a, $b) instead of isset($a) && issert($b)

Code snippet that reproduces the problem

https://phpstan.org/r/05e9a31c-a556-4e4e-b3d0-0d66e43878f3

Expected output

No errors.

If you try this instead, you can see there are no errors indeed, while the two snippets should behave the same way.

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

PHPStan is awesome, and I hope to give my little contribution to it with this issue report

@ondrejmirtes
Copy link
Member

Fixed: phpstan/phpstan-src#2709

@ondrejmirtes
Copy link
Member

Fixed: phpstan/phpstan-src#2710

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 Dec 30, 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

2 participants