LAMPEngineer / angular-laravel-php

Angular 11.0 Laravel 8.0 PHP 8.1 Docker 20.10.7
GNU General Public License v3.0
1 stars 0 forks source link

PHP Fatal error: Uncaught ArgumentCountError: array_merge() does not accept unknown named parameters in #19

Closed LAMPEngineer closed 3 years ago

LAMPEngineer commented 3 years ago

PHP Fatal error: Uncaught ArgumentCountError: array_merge() does not accept unknown named parameters in /usr/share/php/Composer/DependencyResolver/DefaultPolicy.php:84

LAMPEngineer commented 3 years ago

Install composer 2.0

php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" php -r "if (hash_file('sha384', 'composer-setup.php') === '756890a4488ce9024fc62c56153228907f1545c228516cbf63f885e036d37e9a59d27d63f46af1d4d07ee0f76181c7d3') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;" php composer-setup.php php -r "unlink('composer-setup.php');"

Run: php composer.phar

/ __/_ __ _ ____ / / / \/ ` \/ \/ \/ / _ \/ / / // // / / / / / / // / // ( ) / / __/__// // // ./__/__/\// // Composer version 2.1.5 2021-07-23 10:35:47

next run: php composer.phar update

LAMPEngineer commented 3 years ago

resolved.