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