Make sure your local php version is 7.3. I am not sure if a dev dependency dictates the lowest supported php version.
I suspect you have created the project or did an composer update on a system with PHP 7.3
Laravel 6 requires mockery/mockery ^1.0 (See: https://github.com/laravel/laravel/blob/6.x/composer.json#L19 )
The most easy way is by removing your composer.lock and do a new install (that is in fact the same as update because of the missing composer.lock)
nazan liked this reply
composer.lock was the issue. I had done a composer install in php 7.3 environment earlier. Sorry for the inconvenience. But I do have one question. Its regarding semantic versioning, rather than Laravel. What makes ^1.0 install 1.3 and not 1.4? Coz I have seen that there is a 1.4 version of mockery. I guess, I should be asking this in some other forum. I'm just throwing it out there. Maybe it has something to do with the following.
"minimum-stability": "dev", "prefer-stable": true,
With ^1.0 makes composer install the latest 1.* version that is possible. But because 1.4 requires PHP 7.3 composer will not install that version on PHP 7.2 And then you get version 1.3 because that is the latest version that is possible for you.
nazan liked this reply
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community