1
0
Fork 0

Merge pull request #8987 from GrahamCampbell/patch-2

Marked getRootAliasesPerPackage as static
pull/8995/head
Jordi Boggiano 2020-06-17 09:22:18 +02:00 committed by GitHub
commit 80d1b1a34c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -92,7 +92,7 @@ class RepositorySet
*/ */
public function __construct($minimumStability = 'stable', array $stabilityFlags = array(), array $rootAliases = array(), array $rootReferences = array(), array $rootRequires = array()) public function __construct($minimumStability = 'stable', array $stabilityFlags = array(), array $rootAliases = array(), array $rootReferences = array(), array $rootRequires = array())
{ {
$this->rootAliases = $this->getRootAliasesPerPackage($rootAliases); $this->rootAliases = self::getRootAliasesPerPackage($rootAliases);
$this->rootReferences = $rootReferences; $this->rootReferences = $rootReferences;
$this->acceptableStabilities = array(); $this->acceptableStabilities = array();
@ -286,7 +286,7 @@ class RepositorySet
return $this->createPool($request, new NullIO()); return $this->createPool($request, new NullIO());
} }
private function getRootAliasesPerPackage(array $aliases) private static function getRootAliasesPerPackage(array $aliases)
{ {
$normalizedAliases = array(); $normalizedAliases = array();