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

continue/break outside of loop/switch is not an error #3588

Closed
luauser32167 opened this issue Jul 10, 2020 · 2 comments
Closed

continue/break outside of loop/switch is not an error #3588

luauser32167 opened this issue Jul 10, 2020 · 2 comments

Comments

@luauser32167
Copy link

No error is reported for

break;
//continue;

but php -l errors with: Fatal error: 'break' not in the 'loop' or 'switch' context...

@ondrejmirtes
Copy link
Member

Implemented: phpstan/phpstan-src@df5c98d

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

No branches or pull requests

2 participants