Rob Bast 10 лет назад
Родитель
Сommit
117b7ea033
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      src/Composer/Package/Version/VersionSelector.php

+ 1 - 1
src/Composer/Package/Version/VersionSelector.php

@@ -44,7 +44,7 @@ class VersionSelector
     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;