Skip to content

Commit 3d45510

Browse files
committed
only requiring PackageInterface
Some packages will not extend package, but all implement this interface, which is enough.
1 parent d1a6923 commit 3d45510

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Command/UpdateRecipesCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@
1414
use Composer\Command\BaseCommand;
1515
use Composer\IO\IOInterface;
1616
use Composer\Package\Package;
17+
use Composer\Package\PackageInterface;
1718
use Composer\Util\ProcessExecutor;
1819
use Symfony\Component\Console\Exception\RuntimeException;
19-
use Symfony\Component\Console\Formatter\OutputFormatterStyle;
2020
use Symfony\Component\Console\Input\InputArgument;
2121
use Symfony\Component\Console\Input\InputInterface;
2222
use Symfony\Component\Console\Output\OutputInterface;
@@ -262,7 +262,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
262262
return 0;
263263
}
264264

265-
private function getRecipe(Package $package, string $recipeRef = null, string $recipeVersion = null): ?Recipe
265+
private function getRecipe(PackageInterface $package, string $recipeRef = null, string $recipeVersion = null): ?Recipe
266266
{
267267
$operation = new InformationOperation($package);
268268
if (null !== $recipeRef) {

0 commit comments

Comments
 (0)