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

[5.x] Prevent autoloading of abstract classes and interfaces #10882

Merged

Conversation

duncanmcclean
Copy link
Member

This pull request fixes an issue with the addon auto-loading feature introduced in #9270, where it would attempt to autoload abstract classes and interfaces, which obviously won't work.

For example, in my Simple Commerce addon I was extending Statamic's abstract GeneratorCommand class. However, it was still trying to be loaded by the autoloading stuff, resulting in this error:

CleanShot 2024-10-01 at 16 22 06

Fixes duncanmcclean/simple-commerce#1163.

@jasonvarga jasonvarga merged commit c3c63e2 into 5.x Oct 1, 2024
18 checks passed
@jasonvarga jasonvarga deleted the prevent-autoloading-of-abstract-classes-and-interfaces branch October 1, 2024 15:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

GeneratorCommand cannot have an empty name
2 participants