Today after automatic update modulesGeneration is failed:
err = new Error(msg);
^
Error: Command failed: composer update -n --ignore-platform-req php
Today after automatic update modulesGeneration is failed:
err = new Error(msg);
^
Error: Command failed: composer update -n --ignore-platform-req php
Running composer update -n --ignore-platform-req php…
PHP Fatal error: Uncaught TypeError: array_merge(): Argument #1 must be of type array, bool given in phar://C:/ProgramData/ComposerSetup/bin/composer.phar/src/Composer/Config.php:191
Stack trace:
Found the following workaround to generate my project:Remove the following lines (lines 51-53) from the file composer.json in your template directory, e.g.C:\Users[… Your user here …]\AppData\Roaming\PHPMaker2022\node_modules@phpmaker\php2022\composer.json
},
"config": {
"allow-plugins": true
A litte explanation:The problem is within composer. The config value “allow-plugins” defaults to null until June 30th, 2022. From today on it defaults to {} for security purposes.
See composer documentation.PHPMaker sets “allow-plugins” to true, which is a correct configuration. However this configuration is handled incorrectly by composer.
See composer issue 10907 and pull request 10909
The issue was just resolved in release 2.3.8 of composer.see https://github.com/composer/composer/releases/tag/2.3.8