I am using the Windows Operation system to run PHP Laravel-8 Application. The PHP version for all the projects in my Windows Local System is PHP-Version3.8. All the Laravel Projects in my Local System has ("php": "^7.3|^8.0",)
However, I did a pull request from a Team Project but it is PHP-Version4. The Project also uses Laravel-8 Framework ("php": "^7.4|^8.0",)
When I tried to run composer install on the downloaded project, I got this error:
Your lock file does not contain a compatible set of packages. Please run composer update. Problem 1 - Root composer.json requires php ^7.4|^8.0 but your PHP version (7.3.8) does not satisfy that requirement. Problem 2 - lcobucci/clock is locked to version 2.0.0 and an update of this package was not requested. - lcobucci/clock 2.0.0 requires php ^7.4 || ^8.0 -> your php version (7.3.8) does not satisfy that requirement. Problem 3 - lcobucci/jwt is locked to version 4.0.3 and an update of this package was not requested. - lcobucci/jwt 4.0.3 requires php ^7.4 || ^8.0 -> your php version (7.3.8) does not satisfy that requirement. Problem 4 - lcobucci/jwt 4.0.3 requires php ^7.4 || ^8.0 -> your php version (7.3.8) does not satisfy that requirement. - league/oauth2-server 8.2.4 requires lcobucci/jwt ^3.4 || ^4.0 -> satisfiable by lcobucci/jwt[4.0.3]. - league/oauth2-server is locked to version 8.2.4 and an update of this package was not requested. Then when I did composer update, the error is just this:
Your requirements could not be resolved to an installable set of packages. Problem 1 - Root composer.json requires php ^7.4|^8.0 but your php version (7.3.8) does not satisfy that requirement. All the Projects are using composer-2
If I upgrade my Local system to PHPV-7.4, I will have issues with deployed projects.
How do I I get this resolved?
Thanks