Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upShould required files be the same as inlined or autoloaded? #3452
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Using either 0.12.25 or b969cdb, running the attached testcase:
An error is reported.
However, if all those files are
require(d)in anApp.php, and PHPStan is run on the that top level file:...then no errors are reported.
php -fdoesn't report any trouble.I might be missing something with how PHP works, as I'm always using an autoloader.
(edited to update zip with minor code fixes - results are the same)
testcase_require.zip