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
------ ----------------------------------------
Line Class1.php
------ ----------------------------------------
8 Syntax error, unexpected EOF on line 8
------ ----------------------------------------
------ ----------------------------------------------------------------------
Line Class2.php
------ ----------------------------------------------------------------------
ParseError (syntax error, unexpected end of file, expecting function
(T_FUNCTION) or const (T_CONST)) thrown while autoloading class
test\Class2.
5 ParseError (syntax error, unexpected end of file, expecting function
(T_FUNCTION) or const (T_CONST)) thrown while autoloading class
test\Class1.
------ ----------------------------------------------------------------------
However, after fixing the parse error in Class1.php, the following errors persist unless the result cache is destroyed manually:
------ ----------------------------------------------------------------------
Line Class2.php
------ ----------------------------------------------------------------------
ParseError (syntax error, unexpected end of file, expecting function
(T_FUNCTION) or const (T_CONST)) thrown while autoloading class
test\Class2.
5 ParseError (syntax error, unexpected end of file, expecting function
(T_FUNCTION) or const (T_CONST)) thrown while autoloading class
test\Class1.
------ ----------------------------------------------------------------------
Not able to reproduce on phpstan.org due to unable to provide multiple files.
Expected output
After fixing the parse error, no errors should be reported.
The text was updated successfully, but these errors were encountered:
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.
BTW: Did you know that PHPStan now has a brand new website with a user guide, guide to writing analyser-friendly PHP code, and a guide to developing PHPStan extensions? Visit phpstan.org today!
lockbot
locked as resolved and limited conversation to collaborators
Apr 17, 2020
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Bug report
Code snippet that reproduces the problem
Given the following:
Class1.php
and
Class2.php
produces the below errors (as expected):
However, after fixing the parse error in
Class1.php
, the following errors persist unless the result cache is destroyed manually:Not able to reproduce on phpstan.org due to unable to provide multiple files.
Expected output
After fixing the parse error, no errors should be reported.
The text was updated successfully, but these errors were encountered: