You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I expected PHPStan to report that the code is ok. Instead, it reports that the return statement is missing, which is not true, there is return statement inside the declare() block.
Activity
ondrejmirtes commentedon May 13, 2023
You win "the most surprising issue of 2023" award! :) https://twitter.com/OndrejMirtes/status/1657300073196265473
phpstan-bot commentedon Oct 30, 2023
@hocker1 After the latest push in 1.11.x, PHPStan now reports different result with your code snippet:
mad-briller commentedon Oct 31, 2023
@ondrejmirtes this is fixed now
ondrejmirtes commentedon Oct 31, 2023
@mad-briller If you want to do the God's work, please send regression tests for these fixed issues: #5266, #9309, #9394, #6922. Thank you.
Regression tests
mad-briller commentedon Nov 6, 2023
sorry @ondrejmirtes i've been away from pc for a few days and you beat me to it
github-actions commentedon Dec 8, 2023
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.