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

Commit d7da11e

Browse files
committed
minor #236 remove pre-configured platform PHP version (xabbuh)
This PR was merged into the 1.0-dev branch. Discussion ---------- remove pre-configured platform PHP version This resolves #234. Commits ------- be7d2dd remove pre-configured platform PHP version
2 parents 70771ec + be7d2dd commit d7da11e

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)