nas
nas

Reputation: 2417

Php version mismatch while upgrading laravel project

I am trying to upgrade laravel 5.4 to 5.6.

I am getting following error:

Problem 1

This package requires php >=7.1.3 but your PHP version (5.6.37;
Package overridden via config.platform
(actual: 7.3.6)) does not satisfy that requirement.

Problem 2

laravel/framework v5.6.9 requires php ^7.1.3 -> your PHP version
(7.3.6) overridden by "config.platform
.php" version (5.6.37) does not satisfy that requirement.

How can I fix this?

Upvotes: 0

Views: 156

Answers (1)

yariv_kohn
yariv_kohn

Reputation: 92

What is your current PHP version? It seems like you have PHP 5.6. Starting version 5.5 Laravel requires PHP 7+ You can upgrade your PHP version in order to solve this issue, However, you need to make sure that the rest of your code is PHP 7 compatible.

Upvotes: 1

Related Questions