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)
        ));
    }
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)
        ));
    }
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 ) ) ) ; }
Extract and merge stability flags from the given collection of
requires and merge them into a RootPackageInterface

@param RootPackageInterface $root
@param array $requires
Extract and merge stability flags from the given collection of requires and merge them into a RootPackageInterface