Skip to content

Commit d16046d

Browse files
Remove extra.branch-alias on create-project
1 parent e85edca commit d16046d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Flex.php

Lines changed: 3 additions & 0 deletions
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)