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 have an interface with a method that terminates the script. PHPStan handles this differently from a class with a plain terminating method (the latter works just fine.)
Summary of a problem or a feature request
I have an
interface
with a method that terminates the script. PHPStan handles this differently from aclass
with a plain terminating method (the latter works just fine.)Code snippet that reproduces the problem
phpstan.neon
:autoload.php
:test.php
:$ phpstan analyse -l 7 -c phpstan.neon -a autoload.php test.php ------ --------------------------------------- Line test.php ------ --------------------------------------- 11 Variable $hello might not be defined. ------ ---------------------------------------
Expected output
I assume PHPStan should recognize early terminating methods even if they come from an interface.
The text was updated successfully, but these errors were encountered: