Skip to content

Regression tests#1504

Merged
ondrejmirtes merged 2 commits intophpstan:1.8.xfrom
herndlm:regression-tests
Jul 11, 2022
Merged

Regression tests#1504
ondrejmirtes merged 2 commits intophpstan:1.8.xfrom
herndlm:regression-tests

Conversation

@herndlm
Copy link
Copy Markdown
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
Copy Markdown
Member

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

@herndlm
Copy link
Copy Markdown
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 😅

@herndlm herndlm requested a review from ondrejmirtes July 11, 2022 09:04
@ondrejmirtes ondrejmirtes merged commit 050acb5 into phpstan:1.8.x Jul 11, 2022
@ondrejmirtes
Copy link
Copy Markdown
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