1
0
Fork 0

Remove invalid array keys

pull/8376/head
Andreas Schempp 2019-10-15 10:56:43 +02:00
parent 20eb9e66cf
commit 80317eb289
1 changed files with 1 additions and 1 deletions

View File

@ -74,7 +74,7 @@ abstract class BaseRepository implements RepositoryInterface
if ($constraint === null || ($link->getConstraint()->matches($constraint) === !$invert)) {
// already displayed this node's dependencies, cutting short
if (in_array($link->getTarget(), $packagesInTree)) {
$results[$link->getTarget()] = array($package, $link, false);
$results[] = array($package, $link, false);
continue;
}
$packagesInTree[] = $link->getTarget();