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

Fatal error: Cannot declare class #170

Open
Balbo76 opened this issue May 8, 2020 · 0 comments
Open

Fatal error: Cannot declare class #170

Balbo76 opened this issue May 8, 2020 · 0 comments

Comments

@Balbo76
Copy link

Balbo76 commented May 8, 2020

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?

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

No branches or pull requests

1 participant