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 ($this->lazyProvidersUrl && count($packageNameMap)) {
|
||||||
if (is_array($this->availablePackages)) {
|
if (is_array($this->availablePackages)) {
|
||||||
$availPackages = $this->availablePackages;
|
$availPackages = $this->availablePackages;
|
||||||
$packageNameMap = array_filter($packageNameMap, function ($name) use ($availPackages) {
|
foreach ($packageNameMap as $name => $constraint) {
|
||||||
return isset($availPackages[strtolower($name)]);
|
if (!isset($availPackages[strtolower($name)])) {
|
||||||
}, ARRAY_FILTER_USE_KEY);
|
unset($packageNameMap[$name]);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$result = $this->loadAsyncPackages($packageNameMap, $acceptableStabilities, $stabilityFlags);
|
$result = $this->loadAsyncPackages($packageNameMap, $acceptableStabilities, $stabilityFlags);
|
||||||
|
|
Loading…
Reference in New Issue