-
Notifications
You must be signed in to change notification settings - Fork 38
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
Imposter plugin doesn't change namespaces correctly #15
Comments
PHP-Scoper may be a superior namespace changer. |
For scoper I think I'd need to use https://github.com/bamarni/composer-bin-plugin plugin, plus they say that:
Which is a bit worrying :S |
phive update humbug/php-scoper --force-accept-unsigned There is a GitHub Action for PHIVE. |
Agree. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In my project, I'm using the imposter plugin to avoid any conflicts in my project in case I have a plugin that is using different versions of some packages that my project is using.
But for some reason, it only covers these packages and files
It picks up the dependencies correctly, but from the
wp-queue
, only thefunctions.php
namespace gets changed. In other classes it remains the same, so now thefunctions.php
file looks likeAnd I get the errors because the
Queue.php
still has the namespacenamespace WP_Queue;
and notMyProjectVendor\WP_Queue\Queue
.Any ideas why? It should pick up the namespaces from the autoload directive in the
composer.json
🤷🏼♂️Love the library btw! Works like a charm locally, can't wait to test it out on our staging site 🙂
The text was updated successfully, but these errors were encountered: