Level 60
hey, upgrade php to 8.1 ?
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hello everyone,
I am using docker in my PHP development and PHP version is 7.4, I copied one of my projects I developed on WAMP server which runs PHP 8.0.2 to the docker environment and when I try to run it, it gives me this error:
Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 8.0.2". You are running 7.4.1
"require": {
"php": "^7.4|^8.0",
"aacotroneo/laravel-saml2": "^2.1",
"fruitcake/laravel-cors": "^2.0",
"guzzlehttp/guzzle": "^7.0.1",
"inertiajs/inertia-laravel": "^0.5.2",
"laravel/framework": "^8.75",
"laravel/sanctum": "^2.11",
"laravel/tinker": "^2.5"
}
none of the above dependencies won't work on PHP 7.4 so what is the issue?
Please or to participate in this conversation.