Fixes #3900
parent
213d4803ac
commit
117b7ea033
|
@ -44,7 +44,7 @@ class VersionSelector
|
||||||
public function findBestCandidate($packageName, $targetPackageVersion = null)
|
public function findBestCandidate($packageName, $targetPackageVersion = null)
|
||||||
{
|
{
|
||||||
$constraint = $targetPackageVersion ? $this->getParser()->parseConstraints($targetPackageVersion) : null;
|
$constraint = $targetPackageVersion ? $this->getParser()->parseConstraints($targetPackageVersion) : null;
|
||||||
$candidates = $this->pool->whatProvides($packageName, $constraint, true);
|
$candidates = $this->pool->whatProvides(strtolower($packageName), $constraint, true);
|
||||||
|
|
||||||
if (!$candidates) {
|
if (!$candidates) {
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in New Issue