Fix RepositorySet constructor calls to use new signature
parent
26da52227e
commit
bf99f1a341
|
@ -293,7 +293,7 @@ EOT
|
|||
throw new \InvalidArgumentException('Invalid stability provided ('.$stability.'), must be one of: '.implode(', ', array_keys(BasePackage::$stabilities)));
|
||||
}
|
||||
|
||||
$repositorySet = new RepositorySet(array(), $stability);
|
||||
$repositorySet = new RepositorySet(array(), array(), $stability);
|
||||
$repositorySet->addRepository($sourceRepo);
|
||||
|
||||
$phpVersion = null;
|
||||
|
|
|
@ -666,7 +666,7 @@ EOT
|
|||
$key = $minimumStability ?: 'default';
|
||||
|
||||
if (!isset($this->repositorySets[$key])) {
|
||||
$this->repositorySets[$key] = $repositorySet = new RepositorySet(array(), $minimumStability ?: $this->getMinimumStability($input));
|
||||
$this->repositorySets[$key] = $repositorySet = new RepositorySet(array(), array(), $minimumStability ?: $this->getMinimumStability($input));
|
||||
$repositorySet->addRepository($this->getRepos());
|
||||
}
|
||||
|
||||
|
|
|
@ -538,7 +538,7 @@ EOT
|
|||
$constraint = is_string($version) ? $this->versionParser->parseConstraints($version) : $version;
|
||||
|
||||
$policy = new DefaultPolicy();
|
||||
$repositorySet = new RepositorySet(array(), 'dev');
|
||||
$repositorySet = new RepositorySet(array(), array(), 'dev');
|
||||
$repositorySet->addRepository($repos);
|
||||
|
||||
$matchedPackage = null;
|
||||
|
@ -1002,7 +1002,7 @@ EOT
|
|||
private function getRepositorySet(Composer $composer)
|
||||
{
|
||||
if (!$this->repositorySet) {
|
||||
$this->repositorySet = new RepositorySet(array(), $composer->getPackage()->getMinimumStability(), $composer->getPackage()->getStabilityFlags());
|
||||
$this->repositorySet = new RepositorySet(array(), array(), $composer->getPackage()->getMinimumStability(), $composer->getPackage()->getStabilityFlags());
|
||||
$this->repositorySet->addRepository(new CompositeRepository($composer->getRepositoryManager()->getRepositories()));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue