You can use composer status -v . Here you can detect a file change in vendor/ with this command and how to fix it.
First, we verify that the package is not modified:
β SymfonyApp git:(master) β composer status No local changes
Then we change the provider file
β SymfonyApp git:(master) β echo "modification" >> vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php
Then we ask the composer to tell us about the modified files of the providers (pay attention to the -v option to view the modified files)
β SymfonyApp git:(master) β composer status -v You have changes in the following dependencies: /Users/adrienbrault/Developer/SymfonyApp/vendor/symfony/symfony: M src/Symfony/Component/HttpKernel/Kernel.php
Then we create a reset git provider repository to restore the files to their original state.
β SymfonyApp git:(master) β cd /Users/adrienbrault/Developer/SymfonyApp/vendor/symfony/symfony β symfony git checkout . β symfony cd - ~/Developer/SymfonyApp
Finally, we verify that the files are no longer considered modified by the composer.
β SymfonyApp git:(master) β composer status -v No local changes
Update: Now the composer will help you deal with this.
source share