3

I am using magento version 2.3.1

When I have updated composer via command

php composer update

I get this 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

asked Nov 26, 2019 at 14:15
9
  • Did you get any solution for this ? Commented Dec 23, 2019 at 7:00
  • not yet, can you please guide here Commented Dec 23, 2019 at 9:56
  • you can ignore this error and the composer update run successfully Commented Dec 23, 2019 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. Commented Dec 23, 2019 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. Commented Feb 19, 2020 at 14:11

2 Answers 2

1

It's not an error, it's a warning. Informing you that the package container-interop/container-interop is abandoned not receiving new updates. It is up to you whether you want to continue using container-interop/container-interop or decide to use the package psr/container which still receives updates.

When making a decision take account with security and functionality. I wouldn't recommend changing here unless the old packages receives errors due to other packages being updatet.

answered Sep 30, 2020 at 11:40
-1

Try this, that should do the trick

composer remove container-interop/container-interop
composer require psr/container
answered Nov 26, 2019 at 16:41
4
  • Thanks for answer, I will try and let you know :) Commented Nov 27, 2019 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" Commented Feb 19, 2020 at 13:02
  • Do this solution works? Commented Jul 28, 2020 at 8:01
  • Clearly it must not work but I can look into it more if you need? Commented Jul 28, 2020 at 18:19

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.