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
Where a variable is set and there is a possibility for an include to change it, it doesn't seem to be taken into account. For example in the code snippet provided, if the included file contains this:
<?php$items = ['some', 'data'];
then the $items variable is not null but PHPStan detects it as always null.
Bug report
Where a variable is set and there is a possibility for an include to change it, it doesn't seem to be taken into account. For example in the code snippet provided, if the included file contains this:
then the $items variable is not null but PHPStan detects it as always null.
Code snippet that reproduces the problem
https://phpstan.org/r/6f80e0db-de7c-4c1d-adba-afc10d2f34a6
Expected output
PHPStan shouldn't assume that the variable is unchanged after the include.
Did PHPStan help you today? Did it make you happy in any way?
No response
The text was updated successfully, but these errors were encountered: