protected function ExtraPackage::mergeStabilityFlags in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/wikimedia/composer-merge-plugin/src/Merge/ExtraPackage.php \Wikimedia\Composer\Merge\ExtraPackage::mergeStabilityFlags()
Extract and merge stability flags from the given collection of requires and merge them into a RootPackageInterface
Parameters
RootPackageInterface $root:
array $requires:
1 call to ExtraPackage::mergeStabilityFlags()
- ExtraPackage::mergeRequires in vendor/
wikimedia/ composer-merge-plugin/ src/ Merge/ ExtraPackage.php - Merge require or require-dev into a RootPackageInterface
File
- vendor/
wikimedia/ composer-merge-plugin/ src/ Merge/ ExtraPackage.php, line 324
Class
- ExtraPackage
- Processing for a composer.json file that will be merged into a RootPackageInterface
Namespace
Wikimedia\Composer\MergeCode
protected function mergeStabilityFlags(RootPackageInterface $root, array $requires) {
$flags = $root
->getStabilityFlags();
$sf = new StabilityFlags($flags, $root
->getMinimumStability());
$unwrapped = self::unwrapIfNeeded($root, 'setStabilityFlags');
$unwrapped
->setStabilityFlags(array_merge($flags, $sf
->extractAll($requires)));
}