Fix depends command on 5.3, fixes #1034
parent
5a247ca9a5
commit
e2f8098f53
|
@ -67,11 +67,11 @@ EOT
|
|||
}, $input->getOption('link-type'));
|
||||
|
||||
foreach ($repos as $repo) {
|
||||
$repo->filterPackages(function ($package) use ($needle, $types, $output, $verbose) {
|
||||
$repo->filterPackages(function ($package) use ($needle, $types, $linkTypes, $output, $verbose) {
|
||||
static $outputPackages = array();
|
||||
|
||||
foreach ($types as $type) {
|
||||
foreach ($package->{'get'.$this->linkTypes[$type]}() as $link) {
|
||||
foreach ($package->{'get'.$linkTypes[$type]}() as $link) {
|
||||
if ($link->getTarget() === $needle) {
|
||||
if ($verbose) {
|
||||
$output->writeln($package->getPrettyName() . ' ' . $package->getPrettyVersion() . ' <info>' . $type . '</info> ' . $link->getPrettyConstraint());
|
||||
|
|
Loading…
Reference in New Issue