Closed (duplicate)
Project:
Upgrade Status
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
11 Jul 2019 at 17:17 UTC
Updated:
12 Jul 2019 at 16:20 UTC
Jump to comment: Most recent
Comments
Comment #2
waverate commentedOpened contrib issue #3067359: Fatal Error Analyzing Code with phpstan.
Comment #3
gábor hojtsyI would consider this a duplicate of #3065760: Fail more gracefully when exceptions happen, eg. Uncaught PHPStan\Broker\ClassAutoloadingException with Redirect 8.x-1.3, you can try the "fix" there that I was unable to provide a test for and that does not work for non-JS scenarios, but otherwise it was pretty complete. I think this and that needs the same solution.
Comment #4
waverate commentedPatch #16 from #3065760: Fail more gracefully when exceptions happen, eg. Uncaught PHPStan\Broker\ClassAutoloadingException with Redirect 8.x-1.3 does not catch this error. After applying and checking just draggableviews, I still have this error:
Comment #5
gábor hojtsyWe can keep this issue open if you really want to, but as I said, there will be no activity in this issue as the solution to this one and #3065760: Fail more gracefully when exceptions happen, eg. Uncaught PHPStan\Broker\ClassAutoloadingException with Redirect 8.x-1.3 should be one and the same. The fact that the solution there does not work underlines why it was not yet committed. Instead of arguing about issue statuses, a more effective way to help would be to post your use case there. For your use case a very likely fix on that patch is to add a Status header as part of this recovery code:
Basically change that to
Trying that and posting that updated patch there in case it covers your use case would be a welcome contribution. Thanks!
Comment #6
waverate commented@Gábor Hojtsy. Thank you. That worked perfectly.
Patch attached at #19 of #3065760: Fail more gracefully when exceptions happen, eg. Uncaught PHPStan\Broker\ClassAutoloadingException with Redirect 8.x-1.3.