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

PHPStan is lost when using break in a while #2259

Closed
lyrixx opened this issue Jul 1, 2019 · 4 comments

Comments

Projects
None yet
2 participants
@lyrixx
Copy link

commented Jul 1, 2019

I have create a reproducer

As you can see, amqpEnvelope is always defined but PHPStan is not able to detect it

@ondrejmirtes

This comment has been minimized.

Copy link
Member

commented Jul 1, 2019

I'm not able to understand the code, so I'm not surprised PHPStan isn't either.

Is this equivalent? https://phpstan.org/r/87e812b1-673d-4bb6-b862-a4e3231c567e

@lyrixx

This comment has been minimized.

Copy link
Author

commented Jul 1, 2019

Yes it's the same :)

@lyrixx

This comment has been minimized.

Copy link
Author

commented Jul 1, 2019

I have finally does something like https://phpstan.org/r/4d4b5d06-9ada-40e8-8b3b-cdd355230ba4

Feel free to close :)

@ondrejmirtes

This comment has been minimized.

Copy link
Member

commented Jul 1, 2019

OK, thanks :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.