Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to fix this error Package phpunit/phpunit-mock-objects is abandoned, you should avoid using it. No replacement was suggested

I want to to install Laravel 5.2 but it doesn't fully load and shows me this error:

Package phpunit/phpunit-mock-objects is abandoned, you should avoid using it. No replacement was suggested.

How can I fix it?

like image 284
Masoud Avatar asked Apr 15 '19 20:04

Masoud


1 Answers

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"

Note: PHP 7.1 is no longer actively supported.
See this link

composer: add --ignore-platform-reqs

like image 63
user206 Avatar answered Sep 20 '22 06:09

user206