From caad88c04798db4b54a314f7c5943889edc578b0 Mon Sep 17 00:00:00 2001 From: John Boehr Date: Thu, 2 May 2013 16:04:39 -0700 Subject: [PATCH] Update AutoloadGenerator.php This should fix an issue with this commit: https://github.com/composer/composer/commit/87a42c2f01936e6fd8973fac159dc8117114bebc This commit is causing a parse error in autoload_namespaces.php: return array( 'zsql' => 'phar://' . '$vendorDir . '/jbboehr/zsql/build/zsql.phar', A similar problem happens when using autoload.files as well. --- src/Composer/Autoload/AutoloadGenerator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Composer/Autoload/AutoloadGenerator.php b/src/Composer/Autoload/AutoloadGenerator.php index c6bf5e475..deaa69197 100644 --- a/src/Composer/Autoload/AutoloadGenerator.php +++ b/src/Composer/Autoload/AutoloadGenerator.php @@ -320,7 +320,7 @@ EOF; } if (preg_match('/\.phar$/', $path)){ - $baseDir = "'phar://' . '" . $baseDir; + $baseDir = "'phar://' . " . $baseDir; } return $baseDir.var_export($path, true);