Skip to content
This repository was archived by the owner on Nov 14, 2019. It is now read-only.

Commit be7d2dd

Browse files
committed
remove pre-configured platform PHP version
1 parent ee9a334 commit be7d2dd

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/Symfony/Installer/NewCommand.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -350,6 +350,18 @@ protected function updateComposerJson()
350350
unset($contents['description']);
351351
}
352352

353+
if (isset($contents['config']['platform']['php'])) {
354+
unset($contents['config']['platform']['php']);
355+
356+
if (empty($contents['config']['platform'])) {
357+
unset($contents['config']['platform']);
358+
}
359+
360+
if (empty($contents['config'])) {
361+
unset($contents['config']);
362+
}
363+
}
364+
353365
if (isset($contents['extra']['branch-alias'])) {
354366
unset($contents['extra']['branch-alias']);
355367
}

0 commit comments

Comments
 (0)