How to update Composer version by docker using PHP-CLI container?

You can update the composer version by Docker with the help of PHP CLI Container.

Let’s start by checking your docker available image with the help of command, docker ps.

You can see a list of available Container IDs with details of each IMAGE, and NAMES section. Continue reading “How to update Composer version by docker using PHP-CLI container?”

How to fix PHP ArgumentCountError: array_merge() does not accept unknown named parameters?

Recently I have faced an issue in the project while upgrading PHP version 7.* to 8.* and also upgrade composer version 1 from composer 2.

When I checked the pages in the latest version of PHP that used the array_merge(…$this->items) function in PHP 7.4, I got an error like given,

ArgumentCountError: array_merge() does not accept unknown named parameters in Items.php class.

Continue reading “How to fix PHP ArgumentCountError: array_merge() does not accept unknown named parameters?”

How to remove a module package by PHP composer?

You can remove the specific module package from the composer by using composer syntax.

Run the given command from the root of your project.

composer remove <vendor-name>/<package-name> Continue reading “How to remove a module package by PHP composer?”