I receive this message when updating packages using composer:
Warning: Ambiguous class resolution, "League\Flysystem\Local\FallbackMimeTypeDetector" was found in both "/var/www/html/vendor/league/flysystem-local/FallbackMimeTypeDetector.php" and "/var/www/html/vendor/league/flysystem/src/Local/FallbackMimeTypeDetector.php", the first will be used.
Warning: Ambiguous class resolution, "League\Flysystem\Local\LocalFilesystemAdapter" was found in both "/var/www/html/vendor/league/flysystem-local/LocalFilesystemAdapter.php" and "/var/www/html/vendor/league/flysystem/src/Local/LocalFilesystemAdapter.php", the first will be used.
Warning: Ambiguous class resolution, "League\Flysystem\Local\LocalFilesystemAdapterTest" was found in both "/var/www/html/vendor/league/flysystem-local/LocalFilesystemAdapterTest.php" and "/var/www/html/vendor/league/flysystem/src/Local/LocalFilesystemAdapterTest.php", the first will be used.
I have no idea how the second path tmp/vendor... is caused, can someone with a deeper composer knowledge take a look into and explain me what might cause this and how to solve?
This warning message is caused by having two different versions of the same package installed in your project. In this case, it seems that you have two different versions of the league/flysystem-local package installed.
To solve this issue, you can try running the following command in your terminal:
composer update league/flysystem-local
This will update the league/flysystem-local package to the latest version and should resolve the conflict.
If you still encounter the same warning message after updating the package, you can try removing the vendor directory and running composer install again to reinstall all the packages from scratch.
Note: Before removing the vendor directory, make sure to commit any changes you have made to your code to avoid losing them.
Warning: Ambiguous class resolution, "League\Flysystem\Local\LocalFilesystemAdapter" was found in both "C:/Users/DELL 7010/Desktop/LaravelIntro/laravel1/vendor/league/flysystem-local\LocalFilesystemAdapter.php" and "C:/Users/DELL 7010/Desktop/LaravelIntro/laravel1/vendor/league/flysystem/src\Local\LocalFilesystemAdapter.php", the first will be used.
Warning: Ambiguous class resolution, "League\Flysystem\Local\LocalFilesystemAdapterTest" was found in both "C:/Users/DELL 7010/Desktop/LaravelIntro/laravel1/vendor/league/flysystem-local\LocalFilesystemAdapterTest.php" and "C:/Users/DELL 7010/Desktop/LaravelIntro/laravel1/vendor/league/flysystem/src\Local\LocalFilesystemAdapterTest.php", the first will be used.
Warning: Ambiguous class resolution, "App\Providers\AppServiceProvider" was found in both "C:/Users/DELL 7010/Desktop/LaravelIntro/laravel1/app\Providers\AppServiceProvider.php" and "C:/Users/DELL 7010/Desktop/LaravelIntro/laravel1/vendor/laravel/pint/app\Providers\AppServiceProvider.php", the first will be used.
I still had same warning after trying to update and after deleting the vendor folder. Next I deleted the vendor folder again and also deleted the file composer.lock, so it was newly created with composer install. That worked for me. no warnings anymore