matthiasnoback / microsoft-translator

PHP library for making calls to the Microsoft Translator V3 API
MIT License
39 stars 26 forks source link

Ambiguous class resolution warning #21

Closed rogervila closed 5 years ago

rogervila commented 5 years ago

Hello,

On a Laravel project, I included the v3 beta release on my composer.json file

{
    "matthiasnoback/microsoft-translator": "v3.0-beta"
}

After running composer update, I get this message:

Warning: Ambiguous class resolution, "MatthiasNoback\MicrosoftTranslator\ApiCall\GetLanguagesForTranslate" was found in both "/var/www/vendor/matthiasnoback/microsoft-translator/src/MatthiasNoback/MicrosoftTranslator/ApiCall/GetLanguages.php" and "/var/www/vendor/matthiasnoback/microsoft-translator/src/MatthiasNoback/MicrosoftTranslator/ApiCall/GetLanguagesForTranslate.php", the first will be used.

If I am not the only one that gets this message, I can work on a PR that fixes it.

Thank you.

arraintxo commented 5 years ago

That was an unused file (not sure what I was thinking about when I created it) so I removed it again. Should be fine now.

Published a new beta release with this change. Thank you for your feedback.

rogervila commented 5 years ago

Thank you @arraintxo