mirror of
https://github.com/composer/composer
synced 2025-05-11 01:22:54 +00:00
Consistently reuse the new PlatformRepository::isPlatformPackage() method
This commit is contained in:
parent
046c54fdb8
commit
bd6f62c535
17 changed files with 25 additions and 25 deletions
|
@ -104,7 +104,7 @@ class RepositorySet
|
|||
$this->stabilityFlags = $stabilityFlags;
|
||||
$this->rootRequires = $rootRequires;
|
||||
foreach ($rootRequires as $name => $constraint) {
|
||||
if (preg_match(PlatformRepository::PLATFORM_PACKAGE_REGEX, $name)) {
|
||||
if (PlatformRepository::isPlatformPackage($name)) {
|
||||
unset($this->rootRequires[$name]);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue