Skip to content
Browse files

Fix depends command on 5.3, fixes #1034

  • Loading branch information...
1 parent 5a247ca commit e2f8098f5332e504ce280f3768be9de01d080bad @Seldaek Seldaek committed Aug 28, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/Composer/Command/DependsCommand.php
View
4 src/Composer/Command/DependsCommand.php
@@ -67,11 +67,11 @@ protected function execute(InputInterface $input, OutputInterface $output)
}, $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());

0 comments on commit e2f8098

Please sign in to comment.
Something went wrong with that request. Please try again.