1
0
Fork 0
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:
Yanick Witschi 2020-09-01 17:19:19 +02:00
parent 046c54fdb8
commit bd6f62c535
17 changed files with 25 additions and 25 deletions

View file

@ -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]);
}
}