From 72bfe8b92cf2e371bd2af06508cecd9479c0a9ed Mon Sep 17 00:00:00 2001 From: Benjamin Grandfond Date: Sun, 30 Oct 2011 23:53:44 +0100 Subject: [PATCH] Fix Exception in Request Fix the exception "Invalid argument supplied for foreach()" when the install command is launched multiple times. --- src/Composer/DependencyResolver/Request.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Composer/DependencyResolver/Request.php b/src/Composer/DependencyResolver/Request.php index 42f9638e9..201caa1d3 100644 --- a/src/Composer/DependencyResolver/Request.php +++ b/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)