-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PHPStan configuration update to fix ModuleHandler->loadInclude() (v2) #6122
base: 13.x
Are you sure you want to change the base?
Conversation
3 PHPStan errors are persisting. They are about loadInclude(). Help wanted. You can still push to the source branch @andyg5000. P.S. Sorry for the awkward branch naming - my |
Hey @weitzman I think the CI pipeline has a cached phpstan index or something. Have you tried to run this locally using the debug flag?
You should only see the 2 errors that are mentioned in #6120 (comment). Those will need code updates to use the correct logger call and likely remove the empty check since it will never be empty. Let me know what you find out regarding CI and running the tests. |
Full output from my test run for reference. I mention the cache because Matt Glaman and I determined that the phpstan cache doesn't invalidate when changing the configuration file (for some reason). Not sure what else would be causing it, but we saw the same behavior at the table during DrupalCon
|
Those 2 fixes are already in the PR. I am seeing the same failures locally. See below. And I dont see caching that is setup for this job in CI.
|
Maybe retry with the surce branch of this new PR - andyg5000/13.x (sorry for the confusing name). Otherwise I dont know why this passes for you and fails for me and Circle. |
Ok I was seeing the same with the new branch and without the I'm on the train now, but when I get stable internet I'll do some research on the cache or hashing checks that phpstan does and report back. In the meantime, how are your results with |
The last results I pasted were with --debug. Each filename was output before the report that I pasted above. |
I deleted my DDEV build and started from scratch - same errors. I would be very surprised if this is a caching issue. |
I ran with --xdebug and I saw the includes getting require_once() successfully but still those symbols are not found. Its a mystery. |
Ok yes this is definitely a mystery. When I run with @mglaman help! :)
|
I'm so confused. I wish I knew. Maybe it's something to do with the way the includes work. I'd have to run through with Xdebug. So it always fails when cache disabled ( |
Continued from #6121