Composer update error - array_merge(): Expected parameter 1 to be an array, bool given

This public forum is for user-to-user discussions of PHPMaker. Note that this is not support forum.
Post Reply
philmills
User
Posts: 535

Composer update error - array_merge(): Expected parameter 1 to be an array, bool given

Post by philmills »

I just upgraded from v2022.12.2 to v2022.12.4
Now when I run composer update I get the following errors:

Running composer update -n...
  [ErrorException]
  array_merge(): Expected parameter 1 to be an array, bool given
update [--with WITH] [--prefer-source] [--prefer-dist] [--prefer-install PREFER-INSTALL] [--dry-run] [--dev] [--no-dev] [--lock] [--no-install] [--no-autoloader] [--no-suggest] [--no-progress] [-w|--with-dependencies] [-W|--with-all-dependencies] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--apcu-autoloader-prefix APCU-AUTOLOADER-PREFIX] [--ignore-platform-req IGNORE-PLATFORM-REQ] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [-i|--interactive] [--root-reqs] [--] [<packages>]...
node:internal/errors:863
  const err = new Error(message);
              ^
Error: Command failed: composer update -n
    at checkExecSyncError (node:child_process:871:11)
    at execSync (node:child_process:943:15)
    at global.Exec (C:\Users\phil\AppData\Roaming\PHPMaker2022\node_modules\@phpmaker\core\phpmaker.js:8:260827)
    at global.RunComposerUpdate (C:\Users\phil\AppData\Roaming\PHPMaker2022\node_modules\@phpmaker\core\phpmaker.js:8:266356)
    at C:\Users\phil\AppData\Roaming\PHPMaker2022\node_modules\@phpmaker\core\phpmaker.js:8:271904
    at <anonymous>
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
  status: 1,
  signal: null,
  output: [ null, null, null ],
  pid: 95952,
  stdout: null,
  stderr: null
}
Node.js v18.9.1

I have searched all generated files in my project and I can't see anything unusual.
But I don't know how to troubleshoot this


arbei
User
Posts: 9286

Post by arbei »


philmills
User
Posts: 535

Post by philmills »

thanks!


Post Reply