Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

AkalankaKaushalya's avatar

how fix it

Your requirements could not be resolved to an installable set of packages.

Problem 1 - Root composer.json requires phpunit/phpunit ~5.7 -> satisfiable by phpunit/phpunit[5.7.0, ..., 5.7.27]. - phpunit/phpunit[5.7.0, ..., 5.7.27] require php ^5.6 || ^7.0 -> your php version (8.2.12) does not satisfy that requirement.

0 likes
3 replies
JussiMannisto's avatar

You're using a very old version of phpunit. It doesn't work with your PHP version.

Edit the composer.json file and set phpunit's constraint to a newer version, e.g. ^11.0.

You didn't say which version of Laravel you're using.

Please or to participate in this conversation.