如何解决此错误包phpunit/phpunit-mock-objects被放弃了,您应该避免使用它.没有建议更换 [英] How to fix this error Package phpunit/phpunit-mock-objects is abandoned, you should avoid using it. No replacement was suggested
本文介绍了如何解决此错误包phpunit/phpunit-mock-objects被放弃了,您应该避免使用它.没有建议更换的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想安装Laravel 5.2,但没有完全加载并显示此错误:
I want to to install Laravel 5.2 but it doesn't fully load and shows me this error:
软件包phpunit/phpunit-mock-objects被放弃了,您应该避免使用它.没有建议更换.
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.
请参见此链接
Note: PHP 7.1 is no longer actively supported.
See this link
作曲者:添加--ignore-platform-reqs
这篇关于如何解决此错误包phpunit/phpunit-mock-objects被放弃了,您应该避免使用它.没有建议更换的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文