Skip to content

Commit 43b5800

Browse files
authored
Fixed a bug in composer.json when trying to override default options like required php version (#305)
1 parent 470b148 commit 43b5800

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/File/Composer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ protected function addAutoloadToComposerJson(array &$content): Composer
9191

9292
protected function addComposerSettings(array &$content): Composer
9393
{
94-
$content = array_merge_recursive($content, $this->getGenerator()->getOptionComposerSettings());
94+
$content = array_replace_recursive($content, $this->getGenerator()->getOptionComposerSettings());
9595

9696
return $this;
9797
}

0 commit comments

Comments
 (0)