Skip to content
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

Fix failing CI builds on 4.4/5.0/master #35255

Closed
wants to merge 1 commit into from

Conversation

mpdude
Copy link
Contributor

@mpdude mpdude commented Jan 8, 2020

Q A
Branch? 4.4
Bug fix? yes
New feature? no
Deprecations? no
Tickets
License MIT
Doc PR

Tests on 4.4 and master seem to fail since this merge: 648544f

exit;
print "*****\n";
}

// get class loaders wrapped by DebugClassLoader
if ($function[0] instanceof DebugClassLoader) {
$function = $function[0]->getClassLoader();
Copy link
Contributor

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.

Copy link
Contributor Author

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();
Copy link
Contributor

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.

@mpdude mpdude changed the base branch from master to 4.4 January 8, 2020 13:26
@mpdude mpdude changed the title [WIP] Try to understand why tests on master fail Fix currently failing CI builds Jan 8, 2020
@mpdude mpdude changed the title Fix currently failing CI builds Fix failing CI builds on 4.4/5.0/master Jan 8, 2020
@mpdude
Copy link
Contributor Author

mpdude commented Jan 8, 2020

ping @nicolas-grekas, might be helpful for many people to get this resolved soon

nicolas-grekas added a commit that referenced this pull request Jan 8, 2020
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
@nicolas-grekas
Copy link
Member

Replaced by #35267, thanks @mpdude for the hint.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants