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
Variable is defined for sure, it's assigned when !$package->isMultiDay() and that condition is repeated inside the foreach.
Problem goes away when we remove the assign to $availableIntervals on line 52 (which is completely unrelated to the code above but still causes this problem).
Did PHPStan help you today? Did it make you happy in any way?
Activity
Fix maybe-undefined variable regression in loops with unrelated assig…
Fix maybe-undefined variable regression in loops with unrelated assig…
phpstan-bot commentedon Mar 12, 2026
Closed via merging phpstan/phpstan-src#5208
Fix maybe-undefined variable regression in loops with unrelated assig…
github-actions commentedon Apr 13, 2026
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.