From 11930001fba920367be95fc934363462f3f81f74 Mon Sep 17 00:00:00 2001 From: Markus Staab Date: Mon, 4 May 2020 13:34:05 +0200 Subject: [PATCH] Added phpdoc types for PoolBuilder (#8862) --- .../DependencyResolver/PoolBuilder.php | 31 +++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/src/Composer/DependencyResolver/PoolBuilder.php b/src/Composer/DependencyResolver/PoolBuilder.php index b8ad9b281..9d2d3ade9 100644 --- a/src/Composer/DependencyResolver/PoolBuilder.php +++ b/src/Composer/DependencyResolver/PoolBuilder.php @@ -21,6 +21,7 @@ use Composer\Package\Version\StabilityFilter; use Composer\Repository\PlatformRepository; use Composer\Repository\RootPackageRepository; use Composer\Semver\Constraint\Constraint; +use Composer\Semver\Constraint\ConstraintInterface; use Composer\Semver\Constraint\EmptyConstraint; use Composer\Semver\Constraint\MultiConstraint; use Composer\EventDispatcher\EventDispatcher; @@ -32,23 +33,53 @@ use Composer\Plugin\PluginEvents; */ class PoolBuilder { + /** + * @var int[] + */ private $acceptableStabilities; + /** + * @var int[] + */ private $stabilityFlags; /** * @psalm-var array> */ private $rootAliases; + /** + * @psalm-var array + */ private $rootReferences; + /** + * @var EventDispatcher + */ private $eventDispatcher; + /** + * @var IOInterface + */ private $io; + /** + * @psalm-var array + */ private $aliasMap = array(); + /** + * @psalm-var array + */ private $nameConstraints = array(); private $loadedNames = array(); + /** + * @psalm-var Package[] + */ private $packages = array(); + /** + * @psalm-var list + */ private $unacceptableFixedPackages = array(); private $updateAllowList = array(); private $skippedLoad = array(); + /** + * @psalm-var array + */ private $updateAllowWarned = array(); /**