Pārlūkot izejas kodu

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 6 gadi atpakaļ
vecāks
revīzija
85617aa740
1 mainītis faili ar 1 papildinājumiem un 0 dzēšanām
  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();