Ad

How To Fix This Error Package Phpunit/phpunit-mock-objects Is Abandoned, You Should Avoid Using It. No Replacement Was Suggested

- 1 answer

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?

Ad

Answer

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

Ad
source: stackoverflow.com
Ad