From 0e96f363e1b9fa1d7c977147ad12fa5d1711ff0b Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Mon, 25 Oct 2021 11:06:41 +0200 Subject: [PATCH] Remove redundancy in package type --- src/Composer/Repository/ArrayRepository.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/Composer/Repository/ArrayRepository.php b/src/Composer/Repository/ArrayRepository.php index 5a2262175..02761f6a3 100644 --- a/src/Composer/Repository/ArrayRepository.php +++ b/src/Composer/Repository/ArrayRepository.php @@ -30,11 +30,11 @@ use Composer\Semver\Constraint\Constraint; */ class ArrayRepository implements RepositoryInterface { - /** @var ?array */ + /** @var ?array */ protected $packages = null; /** - * @var ?array indexed by package unique name and used to cache hasPackage calls + * @var ?array indexed by package unique name and used to cache hasPackage calls */ protected $packageMap = null; @@ -240,13 +240,12 @@ class ArrayRepository implements RepositoryInterface } /** - * @phpstan-param PackageInterface&BasePackage $package * @param string $alias * @param string $prettyAlias * * @return AliasPackage|CompleteAliasPackage */ - protected function createAliasPackage(PackageInterface $package, $alias, $prettyAlias) + protected function createAliasPackage(BasePackage $package, $alias, $prettyAlias) { while ($package instanceof AliasPackage) { $package = $package->getAliasOf();