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

Fixing issue where incorrect autoloader unregistered (#1069) #1210

Merged
merged 1 commit into from
Apr 9, 2021

Conversation

tezhm
Copy link
Contributor

@tezhm tezhm commented Apr 9, 2021

Summary

Bug fix for #1069.

Unregisters the autoloader registered via MetaCommand->registerClassAutoloadExceptions by reference instead of assuming it is the last registered autoloader.

I'm marking this as a "breaking change" because the MetaCommand->registerClassAutoloadExceptions is protected and I've changed the return type from void to callable (which is the registered autoloader). If you'd prefer, can solve without modifying method definition.

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist

  • Existing tests have been adapted and/or new tests have been added
  • Add a CHANGELOG.md entry
  • Update the README.md
  • Code style has been fixed via composer fix-style

@mfn mfn added the lumen label Apr 9, 2021
Copy link
Collaborator

@mfn mfn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems reasonable to me! Can you please add a changelog entry?

@mfn mfn requested a review from barryvdh April 9, 2021 05:41
@tezhm tezhm force-pushed the bug-1069 branch 2 times, most recently from 26ff808 to 0fddf3f Compare April 9, 2021 05:49
@tezhm
Copy link
Contributor Author

tezhm commented Apr 9, 2021

Added change log entry. Would it be possible to cherry pick this commit and add a v2.8.3 release? Got some dependency conflicts with v2.9.x. All good if too much hassle, got a branch in fork which I can use.

@barryvdh barryvdh merged commit ca94ffd into barryvdh:master Apr 9, 2021
@mfn mfn mentioned this pull request Apr 9, 2021
9 tasks
@mfn
Copy link
Collaborator

mfn commented Apr 9, 2021

@mfn mfn linked an issue Jun 1, 2021 that may be closed by this pull request
d3v2a pushed a commit to d3v2a/laravel-ide-helper that referenced this pull request Feb 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Call to a member function getMethods() on null
3 participants