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

restrict class autoloader to AS namespaces on namespaced classes #388

Merged
merged 1 commit into from
Nov 5, 2019

Conversation

rrennick
Copy link
Contributor

@rrennick rrennick commented Nov 5, 2019

Closes #385

PHP calls autoloader functions in the order they are registered. WordPress loads plugins in alphabetical order so AS is one of the first plugins loaded. The AS autoloader function did not check to see if a requested namespaced class was under the Action_Scheduler namespace. This PR adds that check and fixes a PHPDoc comment typo.

@thenbrent
Copy link
Contributor

LGTM 👍

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.

"Cannot declare class" error
2 participants