Dominik
Dominik

Reputation: 1383

How to resolve ambigious Class resolution in composer PHP?

I have got problem with ambigious class resolution during composer install. I know where this problem came from. It is because I put new verion of PHPExcell library in folder next to the old one:

Ambigious class names

I did this because I need some things from new version but i don't want to delete old because a lot of things are using it.

So my question is: Can i somehow add a kind of prefix before New_PHPExcel so I would be able to use both ? Thank You in advance! :)

Upvotes: 0

Views: 56

Answers (1)

Shira
Shira

Reputation: 6570

You can't use 2 versions of the same library simultaneously in PHP.

Composer won't help you with that.

See https://github.com/composer/composer/issues/2167

Upvotes: 3

Related Questions