WhatsApp si aggiorna con l’anteprima dei messaggi audio
16 Dicembre 2021
Vaccino ai bambini, il cartoon per spiegarlo ai più piccoli: ecco la favola del cavaliere anti-Covid 
16 Dicembre 2021
WhatsApp si aggiorna con l’anteprima dei messaggi audio
16 Dicembre 2021
Vaccino ai bambini, il cartoon per spiegarlo ai più piccoli: ecco la favola del cavaliere anti-Covid 
16 Dicembre 2021

How to tell and force Composer to use a specific PHP version such as 7.x or 8.x

I have multiple versions of PHP installed on my development VM. I am migrating all my projects from PHP 7.x to 8.x and testing it. However, this leads to specific problems. For example, my production Linux container is on PHP 7.4.26, while the development VM is on PHP 8.1. So they don’t match and causes problem even in the dev environment because I have 7.x and 8.x. Here is how to tell the composer to use different PHP versions per project requirements.

Love this? sudo share_on: TwitterFacebookLinkedInWhatsappReddit

The post How to tell and force Composer to use a specific PHP version such as 7.x or 8.x appeared first on nixCraft.