When i run the domain i configured in "laravel/Homestead" which is "symfony-01.local" i get this error
Fatal Error: composer.lock was created for PHP version 7.4 or higher but the current PHP version is 7.2.30.
My homestead PHP version is:version
My Current PHP version is :version
My Homestead composer.lock : composer.lock
My symfony project composer.lock in vagrant:composer.lock
I already found a solution i had to enforce php version for installed composer packages
The solution is to go to the homestead folder and run these commands:
composer config platform.php 7.2.30
This will set the platform option automatically (Note : you can edit it manually in composer.json) and it will be used to download and update composers based on the platform requirement but what i really needed is to ignore it, to do that i used this:
composer update phpunit/phpunit --ignore-platform-reqs