Fix false return value in findPackage, fixes #10622
parent
8d446bef67
commit
a7c2bd8aa1
|
@ -208,7 +208,11 @@ class ComposerRepository extends ArrayRepository implements ConfigurableReposito
|
||||||
|
|
||||||
$packages = $this->loadAsyncPackages(array($name => $constraint));
|
$packages = $this->loadAsyncPackages(array($name => $constraint));
|
||||||
|
|
||||||
return reset($packages['packages']);
|
if (count($packages['packages']) > 0) {
|
||||||
|
return reset($packages['packages']);
|
||||||
|
}
|
||||||
|
|
||||||
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($hasProviders) {
|
if ($hasProviders) {
|
||||||
|
|
Loading…
Reference in New Issue