Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on Nov 14, 2019. It is now read-only.

Commit be7d2dd

Browse filesBrowse files
committed
remove pre-configured platform PHP version
1 parent ee9a334 commit be7d2dd
Copy full SHA for be7d2dd

File tree

Expand file treeCollapse file tree

1 file changed

+12
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+12
-0
lines changed

‎src/Symfony/Installer/NewCommand.php

Copy file name to clipboardExpand all lines: src/Symfony/Installer/NewCommand.php
+12Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.