2

I am using magento version 2.3.1

When i am update composer via command

php composer update

so its giving me error

Package container-interop/container-interop is abandoned, you should avoid using it. Use psr/container instead.

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

please anyone guide me how to solve this error

currently not working any command, giving same error when run command

thanks in advance

  • Did you get any solution for this ? – Charvi Parikh Dec 23 '19 at 7:00
  • not yet, can you please guide here – Pradip Garchar Dec 23 '19 at 9:56
  • you can ignore this error and the composer update run successfully – Charvi Parikh Dec 23 '19 at 11:21
  • It comes up a lot during Composer installations. The module still installed, the message is just a false-positive. If it failed, the message would clearly state that. – Charvi Parikh Dec 23 '19 at 11:21
  • 1
    The only places your issue 'container-interop' is mentioned is in the two files located in the places I've referenced above. These two location paths have the words 'testing' or 'dev/tests', which suggests its not part of the live site, but maybe legacy testing code. I dont know the answer to this problem though as I'm also having it with about 20 other deprecated packages. – Chris Feb 19 at 14:11
-1

Try this, that should do the trick

composer remove container-interop/container-interop
composer require psr/container
  • Thanks for answer, I will try and let you know :) – Pradip Garchar Nov 27 '19 at 9:49
  • I tried this but got the following "container-interop/container-interop is not required in your composer.json and has not been removed" – Chris Feb 19 at 13:02

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.