Bug report
While exploring how good is PHPStan in reporting incorrect uses of break statements, I stumbled on what is perhaps the shortest way to break the analysis:
The following one also prevents PHPStan from continuing its work:
Code snippet that reproduces the problem
https://phpstan.org/r/73566359-1665-45c8-ad24-7d473e34814a
Expected output
The following error: Keyword break used outside of a loop or a switch statement.
Did PHPStan help you today? Did it make you happy in any way?
No response