Guys need your help. We have Yii2 and MediaWiki in project. The problem is that Yii2 has in vendor/phpspec/php-diff/Diff.php Class and Mediawiki has class which is called as Diff. The both files is in global namespace and We can’t change these files. What should we do?)
It’s a conflict not between Yii and MediaWiki, but between phpspec/php-diff and MediaWiki.
Yii has no measure to solve this conflict. So, IMO, it’s a desperate situation.
I would probably fork phpdpec/php-diff (or MediaWiki, I’m not sure) and give it a namespace.
[EDIT]
Oh, I’m sorry. Yii 2 seems to have a dependency on phpspec/php-diff. I wonder what component of Yii depends on php-diff.