From dd35701b5ab40d5d9959d0802d9e46d428c57b5a Mon Sep 17 00:00:00 2001 From: Sami Mazouz Date: Sat, 16 Dec 2023 13:05:02 +0100 Subject: [PATCH] chore: prevent future issues when min stability is set --- .../src/Api/Controller/ConfigureComposerController.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/extensions/package-manager/src/Api/Controller/ConfigureComposerController.php b/extensions/package-manager/src/Api/Controller/ConfigureComposerController.php index 54504cd2b3..b065d2cbc2 100755 --- a/extensions/package-manager/src/Api/Controller/ConfigureComposerController.php +++ b/extensions/package-manager/src/Api/Controller/ConfigureComposerController.php @@ -95,6 +95,9 @@ protected function composerConfig(ServerRequestInterface $request): array Arr::set($composerJson, $key, $value); } + // Always prefer stable releases. + $composerJson['prefer-stable'] = true; + $this->composerJson->set($composerJson); }