1
0
Fork 0

Merge pull request #3917 from alcohol/lowercase-packagename-before-lookup

Fixes #3900
pull/3219/merge
Jordi Boggiano 2015-04-08 14:43:49 +01:00
commit 4d134ce8a2
1 changed files with 1 additions and 1 deletions

View File

@ -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;