-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
Fix failing CI builds on 4.4/5.0/master #35255
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
Conversation
exit; | ||
print "*****\n"; | ||
} | ||
|
||
// get class loaders wrapped by DebugClassLoader | ||
if ($function[0] instanceof DebugClassLoader) { | ||
$function = $function[0]->getClassLoader(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i think the offending line is here :) which returns any callable.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ro0NL 👏 good point.
// get class loaders wrapped by DebugClassLoader | ||
if ($function[0] instanceof DebugClassLoader) { | ||
$function = $function[0]->getClassLoader(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i would debug the actual value here first.. to see if we can understand what happened.
overall the ComposerClassLoader is not a callable/invokable type itself, so i tend to believe we need a 2nd is_array check before accessing $function[0]
secondly.
8534cec
to
d698d23
Compare
…loader, but does not wrap a closure
d698d23
to
8ae1820
Compare
master
fail
ping @nicolas-grekas, might be helpful for many people to get this resolved soon |
This PR was merged into the 3.4 branch. Discussion ---------- [Debug] fix ClassNotFoundFatalErrorHandler | Q | A | ------------- | --- | Branch? | 3.4 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | - | License | MIT | Doc PR | - Spotted by the CI on 4.4, see #35266 for details. Replaces #35255 /cc @mpdude Commits ------- 0c320fe [Debug] fix ClassNotFoundFatalErrorHandler
Tests on
4.4
andmaster
seem to fail since this merge: 648544f