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

Regression tests #1504

Merged
merged 2 commits into from
Jul 11, 2022
Merged

Regression tests #1504

merged 2 commits into from
Jul 11, 2022

Conversation

herndlm
Copy link
Contributor

@herndlm herndlm commented Jul 10, 2022

Looks like I finally hit a small issue bot jackpot in #1493 that closes 5 more issues :)

Closes phpstan/phpstan#6781
Closes phpstan/phpstan#6647
Closes phpstan/phpstan#5896
Closes phpstan/phpstan#5474
Closes phpstan/phpstan#6000

phpstan/phpstan#5896 does still not report always false as mentioned, but I think that's a different problem. See e.g. https://phpstan.org/r/416a6ec2-aa3c-4b01-858a-1bfed84bd797, as this was not part of the original issue there, should a new one be opened? not sure if phpstan is able to keep track of such variable copies or clones?

@herndlm herndlm marked this pull request as ready for review July 10, 2022 20:59
@ondrejmirtes
Copy link
Member

@herndlm I think there's gonna be something about this in MutatingScope::$conditionalExpressions but I don't think it's worth pursuing.

tests/PHPStan/Analyser/data/bug-5896.php Outdated Show resolved Hide resolved
tests/PHPStan/Rules/Comparison/data/bug-5474.php Outdated Show resolved Hide resolved
tests/PHPStan/Rules/Functions/data/bug-5474.php Outdated Show resolved Hide resolved
@herndlm
Copy link
Contributor Author

herndlm commented Jul 11, 2022

@herndlm I think there's gonna be something about this in MutatingScope::$conditionalExpressions but I don't think it's worth pursuing.

I also don't think it's worth pursuing. I'd hope you'd say that 😅

@ondrejmirtes ondrejmirtes merged commit 050acb5 into phpstan:1.8.x Jul 11, 2022
@ondrejmirtes
Copy link
Member

Thank you!

@herndlm herndlm deleted the regression-tests branch July 11, 2022 09:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants