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
|
@ -757,7 +757,7 @@ class Installer
|
|||
|
||||
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