genesisweb / valet-linux-plus

Advanced local development experience for Linux.
MIT License
143 stars 23 forks source link

Not swtiching version properly #51

Closed MuhammadSaim closed 2 years ago

MuhammadSaim commented 2 years ago

Hi.! I have multiple PHP versions installed on my machine. image

Change the PHP version with valet using valet use 8.0 --update-cli but this wil just set my cli version but on the FPM version will be the old one or the previous one.

image

uttamrabadiya commented 2 years ago

@MuhammadSaim Can you describe something more about your system? What is your Operating System, and output of valet status command as well.

Episodio1 commented 2 years ago

Hi! I installed valet with php 7.4 running. Now, when I use "valet use 7.x --update-cli" (7.2 or 7.3) I am not able to run "valet" again because it says:

"Composer detected issues in your platform:
Your Composer dependencies require a PHP version ">= 7.4.0". You are running 7.2.34"

If I check my ".config/composer/composer.lock" the only item which requires php >= 7.4 is:

{
            "name": "psr/container",
            "version": "1.1.2",
            ...
            "require": {
                "php": ">=7.4.0"
           ...
}

Is valet using this library "psr/container" or is it there because of another installation??

Thanks.