File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -42,6 +42,16 @@ public function runInstall(
4242 $ recommendedRequireVersion = $ versionSelector ->findRecommendedRequireVersion ($ package ->composerPackage ());
4343 }
4444
45+ if ($ package ->isBundledPhpExtension ()) {
46+ $ stability = $ package ->composerPackage ()->getStability ();
47+ $ stabilitySuffix = '' ;
48+ if ($ stability !== 'stable ' ) {
49+ $ stabilitySuffix = '@ ' . $ stability ;
50+ }
51+
52+ $ recommendedRequireVersion = '* ' . $ stabilitySuffix ;
53+ }
54+
4555 // Write the new requirement to pie.json; because we later essentially just do a `composer install` using that file
4656 $ pieComposerJson = Platform::getPieJsonFilename ($ targetPlatform );
4757 $ pieJsonEditor = PieJsonEditor::fromTargetPlatform ($ targetPlatform );
You can’t perform that action at this time.
0 commit comments