You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 the functions.php namespace gets changed. In other classes it remains the same, so now the functions.php file looks like
<?phpuseMyProjectVendor\WP_Queue\Queue;
useMyProjectVendor\WP_Queue\QueueManager;
if ( ! function_exists( 'wp_queue' ) ) {
And I get the errors because the Queue.php still has the namespace namespace WP_Queue; and not MyProjectVendor\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:
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: