Skip to content

Commit 1cc7023

Browse files
bug #697 Remove extra.branch-alias on create-project (nicolas-grekas)
This PR was merged into the 1.8-dev branch. Discussion ---------- Remove extra.branch-alias on create-project Commits ------- d16046d Remove extra.branch-alias on create-project
2 parents f4b7b9a + d16046d commit 1cc7023

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Flex.php

+3
Original file line numberDiff line numberDiff line change
@@ -335,6 +335,9 @@ public function configureProject(Event $event)
335335
// new projects are most of the time proprietary
336336
$manipulator->addMainKey('license', 'proprietary');
337337

338+
// extra.branch-alias doesn't apply to the project
339+
$manipulator->removeSubNode('extra', 'branch-alias');
340+
338341
// replace unbounded constraints for symfony/* packages by extra.symfony.require
339342
$config = json_decode($contents, true);
340343
if ($symfonyVersion = $config['extra']['symfony']['require'] ?? null) {

0 commit comments

Comments
 (0)