我想安装 Laravel 5.2,但它没有完全加载并向我显示此错误:
>Package phpunit/phpunit-mock-objects is abandoned, you should avoid using it. No replacement was suggested.
我该如何解决它?
PHPUnit version PHP Version composer
----------------- --------------- -------------------------
PHPUnit 8 PHP 7.2 / 7.3 "phpunit/phpunit": "^8"
PHPUnit 7 PHP 7.1 "phpunit/phpunit": "^7"
PHPUnit 6 PHP 7.0 "phpunit/phpunit": "^6"
PHPUnit 5 PHP 5.6 "phpunit/phpunit": "^5"
注意:不再主动支持 PHP 7.1。
查看此链接
作曲家: 添加--ignore-platform-reqs
在作曲家文件中,您可以编写以下字符串:
"phpunit/phpunit": "~7.0"