1
0
Fork 0

Fix depends command on 5.3, fixes #1034

pull/1038/merge
Jordi Boggiano 2012-08-28 13:30:57 +02:00
parent 5a247ca9a5
commit e2f8098f53
1 changed files with 2 additions and 2 deletions

View File

@ -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());