imposter-plugin icon indicating copy to clipboard operation
imposter-plugin copied to clipboard

Fatal error: Cannot declare class

Open Balbo76 opened this issue 5 years ago • 0 comments

Good evening.

I have tried imposter-plugin for composer but i think i'm not using it in the right way: i placed this code in composer.json file:

"extra": {
    "imposter": {
      "namespace": "My\\Vendor",
      "excludes": [ ]
    }
  }

And then i installed the imposter plugin via composer require. Then i run composer install and all my classes get namespaced but when i try to use them im getting the errors:

Fatal error: Cannot declare class Ekr\Vendor\Monolog\Formatter\LineFormatter, because the name is already in use in /var/www/html/.../vendor/monolog/monolog/src/Monolog/Formatter/LineFormatter.php on line 0

Wich is my mistake?

Balbo76 avatar May 08 '20 16:05 Balbo76