Explorar o código

Installer: Initialize $nameMatchesRequiredPackage

We had a case where we got `Undefined variable: nameMatchesRequiredPackage` — I think it should be initialized with false, right?
Hans-Christian Otto %!s(int64=6) %!d(string=hai) anos
pai
achega
85617aa740
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      src/Composer/Installer.php

+ 1 - 0
src/Composer/Installer.php

@@ -1317,6 +1317,7 @@ class Installer
 
         foreach ($this->updateWhitelist as $packageName => $void) {
             $packageQueue = new \SplQueue;
+            $nameMatchesRequiredPackage = false;
 
             $depPackages = $pool->whatProvides($packageName);
             $matchesByPattern = array();