Ejemplo 1: actualizar la versión de php en laravel
"config": {
"platform": {
"php": "7.0.7"
},
"preferred-install": "dist",
"optimize-autoloader": true
}
run composer install
Ejemplo 2: instalé la versión 7.2.4 de laravel pero muestra php v 7.2
I've had this problem too. If you don't want to update all your composer
packages, you can solve this issue by manually changing the composer.lock file
and writing your actual PHP version in platform > php in the JSON object.
Example
...
"platform": {
"php": "7.1"
}
...
Although it works, the most recommended way to do this would be deleting your
composer.lock file, changing the platform > php version in composer.json and
then executing composer install
¡Haz clic para puntuar esta entrada!
(Votos: 0 Promedio: 0)