Sfoglia il codice sorgente

Fix Exception in Request

Fix the exception "Invalid argument supplied for foreach()" when the
install command is launched multiple times.
Benjamin Grandfond 14 anni fa
parent
commit
72bfe8b92c
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. 1 0
      src/Composer/DependencyResolver/Request.php

+ 1 - 0
src/Composer/DependencyResolver/Request.php

@@ -25,6 +25,7 @@ class Request
     public function __construct(Pool $pool)
     {
         $this->pool = $pool;
+        $this->jobs = array();
     }
 
     public function install($packageName, LinkConstraintInterface $constraint = null)