Handle array candidates in whatProvides
parent
eb5c785dcd
commit
aa74818fe0
|
@ -268,7 +268,10 @@ class Pool
|
||||||
$nameMatch = false;
|
$nameMatch = false;
|
||||||
|
|
||||||
foreach ($candidates as $candidate) {
|
foreach ($candidates as $candidate) {
|
||||||
if ($this->whitelist !== null && !isset($this->whitelist[$candidate->getId()])) {
|
if ($this->whitelist !== null && (
|
||||||
|
(is_array($candidate) && isset($candidate['id']) && !isset($this->whitelist[$candidate['id']])) ||
|
||||||
|
(is_object($candidate) && !isset($this->whitelist[$candidate->getId()]))
|
||||||
|
)) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
switch ($this->match($candidate, $name, $constraint)) {
|
switch ($this->match($candidate, $name, $constraint)) {
|
||||||
|
|
Loading…
Reference in New Issue