protected static function getPatchedDependencyConstraints(RootPackageInterface $root_package) {
    $required = $root_package->getRequires();
    $extra = $root_package->getExtra();
    $patched = $extra['patches'];
    return array_intersect_key($required, $patched);
  }
protected static function getPatchedDependencyConstraints(RootPackageInterface $root_package) {
    $required = $root_package->getRequires();
    $extra = $root_package->getExtra();
    $patched = $extra['patches'];
    return array_intersect_key($required, $patched);
  }
protected static function getPatchedDependencyConstraints ( RootPackageInterface $ root_package ) { $ required = $ root_package -> getRequires ( ) ; $ extra = $ root_package -> getExtra ( ) ; $ patched = $ extra [ 'patches' ] ; return array_intersect_key ( $ required , $ patched ) ; }
Filters the requires section to packages that are patched.

@param \Composer\Package\RootPackageInterface $root_package
The root composer.json package.

@return \Composer\Package\Link
List of required packages that are patched.
Filters the requires section to packages that are patched .