Properly limit to name matches only if necessary
parent
ec12b8a675
commit
bc7008270f
|
@ -300,8 +300,14 @@ class Pool
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($mustMatchName) {
|
||||||
|
return array_filter($matches, function ($match) use ($name) {
|
||||||
|
return $match->getName() == $name;
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
// if a package with the required name exists, we ignore providers
|
// if a package with the required name exists, we ignore providers
|
||||||
if ($nameMatch || $mustMatchName) {
|
if ($nameMatch) {
|
||||||
return $matches;
|
return $matches;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue