Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions src/ComposerIntegration/ComposerIntegrationHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,16 @@ public function runInstall(
$recommendedRequireVersion = $versionSelector->findRecommendedRequireVersion($package->composerPackage());
}

if ($package->isBundledPhpExtension()) {
$stability = $package->composerPackage()->getStability();
$stabilitySuffix = '';
if ($stability !== 'stable') {
$stabilitySuffix = '@' . $stability;
}

$recommendedRequireVersion = '*' . $stabilitySuffix;
}

// Write the new requirement to pie.json; because we later essentially just do a `composer install` using that file
$pieComposerJson = Platform::getPieJsonFilename($targetPlatform);
$pieJsonEditor = PieJsonEditor::fromTargetPlatform($targetPlatform);
Expand Down