我最近安装了php (8.1.7)、composer (2.3.7)和laravel 9;现在在一个laravel项目上运行命令composer update时,我得到了这个错误,我搜索了很多,但没有找到确切的解决方案,它们都没有讨论phpunit/phpunit的问题。
错误如下所示:
Problem 1
- phpunit/phpunit[6.0.0, ..., 6.5.14] require php ^7.0 -> your php version (8.1.7) does not satisfy that requirement.
- Root composer.json requires phpunit/phpunit ~6.0 -> satisfiable by phpunit/phpunit[6.0.0, ..., 6.5.14].```发布于 2022-06-23 08:10:11
您必须升级您的phpunit版本以与您的php 8.1.7相对应(根据正式文件,在phpunit版本9或8之间进行选择),或者将您的php版本降级为使用phpunit 6.*。
就这样!
https://stackoverflow.com/questions/72725896
复制相似问题