Remove usage of 5.6+ constant
parent
8ea787baa1
commit
c2f77d80bd
|
@ -363,9 +363,11 @@ class ComposerRepository extends ArrayRepository implements ConfigurableReposito
|
|||
if ($this->lazyProvidersUrl && count($packageNameMap)) {
|
||||
if (is_array($this->availablePackages)) {
|
||||
$availPackages = $this->availablePackages;
|
||||
$packageNameMap = array_filter($packageNameMap, function ($name) use ($availPackages) {
|
||||
return isset($availPackages[strtolower($name)]);
|
||||
}, ARRAY_FILTER_USE_KEY);
|
||||
foreach ($packageNameMap as $name => $constraint) {
|
||||
if (!isset($availPackages[strtolower($name)])) {
|
||||
unset($packageNameMap[$name]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$result = $this->loadAsyncPackages($packageNameMap, $acceptableStabilities, $stabilityFlags);
|
||||
|
|
Loading…
Reference in New Issue