My php version is PHP 7.4.1.
But with MAMP, the highest possible php version I can use is 7.3.8.
So, when I try to open my webpage, I get the error message:
Fatal Error: composer.lock was created for PHP version 7.4 or higher but the current PHP version is 7.3.8.
How can I downgrade my php version to fit to my MAMP version?
I tried:
brew install php@7.3
It was installed, but when I now write php --version
, I get the error:
-bash: /usr/local/bin/php: No such file or directory