When merging in a composer.json file that includes autoload-dev and/or require-dev, composer-merge-plugin will create an empty array for these keys in the root composer.json. This causes composer to throw a fatal error:
[Composer\Json\JsonValidationException]
"./composer.json" does not match the expected JSON schema:
- require-dev : Array value found, but an object is required
- autoload-dev : Array value found, but an object is required
The stubs should be created as empty objects rather than empty arrays.
When merging in a composer.json file that includes autoload-dev and/or require-dev, composer-merge-plugin will create an empty array for these keys in the root composer.json. This causes composer to throw a fatal error:
The stubs should be created as empty objects rather than empty arrays.