Skip to content

Commit 7c25be3

Browse files
bug #968 Fix keeping platform requirements when rebooting composer (nicolas-grekas)
This PR was merged into the 1.x branch. Discussion ---------- Fix keeping platform requirements when rebooting composer Commits ------- 9aca8f3 Fix keeping platform requirements when rebooting composer
2 parents 7c191ea + 9aca8f3 commit 7c25be3

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
@@ -1058,6 +1058,9 @@ private function reinstall(Event $event, bool $update)
10581058
$composer->getEventDispatcher(),
10591059
$composer->getAutoloadGenerator()
10601060
);
1061+
if (method_exists($installer, 'setPlatformRequirementFilter')) {
1062+
$installer->setPlatformRequirementFilter(((array) $this->installer)["\0*\0platformRequirementFilter"]);
1063+
}
10611064

10621065
if (!$update && method_exists($installer, 'setUpdateAllowList')) {
10631066
$installer->setUpdateAllowList(['php']);

0 commit comments

Comments
 (0)