Level 55
@zwarkyaw you still allow php7
"php": "^7.0||^8.1.4",
but phpunit 10 requires php >= 8.1
You need to use older phpunit version (which ssupports php 7.0) or stop support php7
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
i try to update dependencies in laravel old files. current php version is 8 when i make composer update
Problem 1
- Root composer.json requires phpunit/phpunit ~10.0, found phpunit/phpunit[dev-main, 10.0.x-dev (alias of dev-main)] but it does not match your
minimum-stability.
Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.
how can solve my composer.json is
{
"name": "laravel/laravel",
"description": "The Laravel Framework.",
"keywords": ["framework", "laravel"],
"license": "MIT",
"type": "project",
"require": {
"php": "^7.0||^8.1.4",
"coingate/coingate-php": "^2.0",
"fideloper/proxy": "~3.3",
"hesto/multi-auth": "^2.0",
"intervention/image": "^2.4",
"laravel/framework": "5.5.*",
"laravel/tinker": "~1.0",
"nwidart/laravel-modules": "^2.7",
"stripe/stripe-php": "^6.0"
},
"require-dev": {
"filp/whoops": "~2.0",
"fzaninotto/faker": "~1.4",
"mockery/mockery": "~1.0",
"phpunit/phpunit": "~10.0",
"symfony/thanks": "^1.0"
},
"autoload": {
"classmap": [
"database/seeds",
"database/factories"
],
"psr-4": {
"App\": "app/",
"Modules\": "Modules/"
}
},
"autoload-dev": {
"psr-4": {
"Tests\": "tests/"
},
"files" :["app/Http/helpers/helpers.php"]
},
"extra": {
"laravel": {
"dont-discover": [
]
}
},
"scripts": {
"post-root-package-install": [
"@php -r \"file_exists('.env') || copy('.env.example', '.env');\""
],
"post-create-project-cmd": [
"@php artisan key:generate"
],
"post-autoload-dump": [
"Illuminate\Foundation\ComposerScripts::postAutoloadDump",
"@php artisan package:discover"
]
},
"config": {
"preferred-install": "dist",
"sort-packages": true,
"optimize-autoloader": true
}
}
I change phpunit to 10 because of php v 8
@zwarkyaw you still allow php7
"php": "^7.0||^8.1.4",
but phpunit 10 requires php >= 8.1
You need to use older phpunit version (which ssupports php 7.0) or stop support php7
Please or to participate in this conversation.