Take into account a package's "provide" and "replace" fields
A package can satisfy a require by its "provide" or "replace" fields, so this leverages the getNames() method which returns these alternate names as well.pull/6371/head
parent
6c4800b8d2
commit
4cda7e0a44
|
@ -755,9 +755,9 @@ class Installer
|
|||
continue;
|
||||
}
|
||||
|
||||
if ($package->getType() === 'composer-plugin'
|
||||
if ($package->getType() === 'composer-plugin'
|
||||
|| $package->getType() === 'composer-installer'
|
||||
|| in_array($package->getName(), $installerRequires)
|
||||
|| count(array_intersect($package->getNames(), $installerRequires))
|
||||
) {
|
||||
// capture the requirements for this package so those packages will be moved up as well
|
||||
$installerRequires = array_merge($installerRequires, array_keys($package->getRequires()));
|
||||
|
|
Loading…
Reference in New Issue