Эх сурвалжийг харах

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 жил өмнө
parent
commit
85617aa740

+ 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();