From 247d19e2f8c644a3caa7fc0ba77f7e37778a9629 Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Wed, 8 Feb 2012 18:12:46 +0100 Subject: [PATCH] Add type hints --- src/Composer/Command/ShowCommand.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/Composer/Command/ShowCommand.php b/src/Composer/Command/ShowCommand.php index 9a2b1b6a3..a860a83af 100644 --- a/src/Composer/Command/ShowCommand.php +++ b/src/Composer/Command/ShowCommand.php @@ -20,6 +20,7 @@ use Symfony\Component\Console\Output\OutputInterface; use Composer\Repository\CompositeRepository; use Composer\Repository\PlatformRepository; use Composer\Repository\ComposerRepository; +use Composer\Repository\RepositoryInterface; /** * @author Robert Schönthal @@ -75,7 +76,7 @@ EOT * @return PackageInterface * @throws \InvalidArgumentException */ - protected function getPackage(InputInterface $input, OutputInterface $output, $installedRepo, $repos) + protected function getPackage(InputInterface $input, OutputInterface $output, RepositoryInterface $installedRepo, RepositoryInterface $repos) { // we have a name and a version so we can use ::findPackage if ($input->getArgument('version')) { @@ -103,7 +104,7 @@ EOT /** * prints package meta data */ - protected function printMeta(InputInterface $input, OutputInterface $output, PackageInterface $package, $installedRepo, $repos) + protected function printMeta(InputInterface $input, OutputInterface $output, PackageInterface $package, RepositoryInterface $installedRepo, RepositoryInterface $repos) { $output->writeln('name : ' . $package->getPrettyName()); $this->printVersions($input, $output, $package, $installedRepo, $repos); @@ -128,7 +129,7 @@ EOT /** * prints all available versions of this package and highlights the installed one if any */ - protected function printVersions(InputInterface $input, OutputInterface $output, PackageInterface $package, $installedRepo, $repos) + protected function printVersions(InputInterface $input, OutputInterface $output, PackageInterface $package, RepositoryInterface $installedRepo, RepositoryInterface $repos) { if ($input->getArgument('version')) { $output->writeln('version : ' . $package->getPrettyVersion());