Level 60
Switch to PHP 5.6 or 7, or update phpunit package
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
hello guys I got a project, but when I want to run them by typing the composer update command, there is an error like this
Loading composer repositories with package information
Info from https://repo.packagist.org: #StandWithUkraine
Updating dependencies
Your requirements could not be resolved to an installable set of packages.
Problem 1
- phpunit/phpunit[5.7.0, ..., 5.7.27] require php ^5.6 || ^7.0 -> your php version (8.1.6) does not satisfy that requirement.
- Root composer.json requires phpunit/phpunit ~5.7 -> satisfiable by phpunit/phpunit[5.7.0, ..., 5.7.27].
Can anyone help me??
Please or to participate in this conversation.