Magento 2 : composer update giving this error
-
14-04-2021 - |
Question
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
No correct solution
OTHER TIPS
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.
Try this, that should do the trick
composer remove container-interop/container-interop
composer require psr/container