Skip to content

Commit

Permalink
Merge pull request #3917 from alcohol/lowercase-packagename-before-lo…
Browse files Browse the repository at this point in the history
…okup

Fixes #3900
  • Loading branch information
Seldaek committed Apr 8, 2015
2 parents 213d480 + 117b7ea commit 4d134ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Composer/Package/Version/VersionSelector.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public function __construct(Pool $pool)
public function findBestCandidate($packageName, $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) {
return false;
Expand Down

0 comments on commit 4d134ce

Please sign in to comment.