1
0
Fork 0

Added phpdoc types for PoolBuilder (#8862)

pull/8874/head
Markus Staab 2020-05-04 13:34:05 +02:00 committed by GitHub
parent c23670c3ec
commit 11930001fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 31 additions and 0 deletions

View File

@ -21,6 +21,7 @@ use Composer\Package\Version\StabilityFilter;
use Composer\Repository\PlatformRepository; use Composer\Repository\PlatformRepository;
use Composer\Repository\RootPackageRepository; use Composer\Repository\RootPackageRepository;
use Composer\Semver\Constraint\Constraint; use Composer\Semver\Constraint\Constraint;
use Composer\Semver\Constraint\ConstraintInterface;
use Composer\Semver\Constraint\EmptyConstraint; use Composer\Semver\Constraint\EmptyConstraint;
use Composer\Semver\Constraint\MultiConstraint; use Composer\Semver\Constraint\MultiConstraint;
use Composer\EventDispatcher\EventDispatcher; use Composer\EventDispatcher\EventDispatcher;
@ -32,23 +33,53 @@ use Composer\Plugin\PluginEvents;
*/ */
class PoolBuilder class PoolBuilder
{ {
/**
* @var int[]
*/
private $acceptableStabilities; private $acceptableStabilities;
/**
* @var int[]
*/
private $stabilityFlags; private $stabilityFlags;
/** /**
* @psalm-var array<string, array<string, array{alias: string, alias_normalized: string}>> * @psalm-var array<string, array<string, array{alias: string, alias_normalized: string}>>
*/ */
private $rootAliases; private $rootAliases;
/**
* @psalm-var array<string, string>
*/
private $rootReferences; private $rootReferences;
/**
* @var EventDispatcher
*/
private $eventDispatcher; private $eventDispatcher;
/**
* @var IOInterface
*/
private $io; private $io;
/**
* @psalm-var array<string, AliasPackage>
*/
private $aliasMap = array(); private $aliasMap = array();
/**
* @psalm-var array<string, ConstraintInterface[]|null>
*/
private $nameConstraints = array(); private $nameConstraints = array();
private $loadedNames = array(); private $loadedNames = array();
/**
* @psalm-var Package[]
*/
private $packages = array(); private $packages = array();
/**
* @psalm-var list<Package>
*/
private $unacceptableFixedPackages = array(); private $unacceptableFixedPackages = array();
private $updateAllowList = array(); private $updateAllowList = array();
private $skippedLoad = array(); private $skippedLoad = array();
/**
* @psalm-var array<string, bool>
*/
private $updateAllowWarned = array(); private $updateAllowWarned = array();
/** /**