From ede2b37ae2b4cf6af81463de6aaca82ec610fd87 Mon Sep 17 00:00:00 2001 From: Alan Hollis Date: Fri, 30 Aug 2013 11:46:39 +0100 Subject: [PATCH] Fix parse error thrown in PHP5.5+ When running composer update the file generated by AutoloadGenerator was not able to be parsed by php due to a require statement inside the foreach loop. The fix is to make the statement work the same as the autoload_namespaces.php require is done. Issue occured using the following php versions PHP 5.5.1-2+debphp.org~precise+2 PHP 5.5.3-1+debphp.org~precise+2 --- src/Composer/Autoload/AutoloadGenerator.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/Composer/Autoload/AutoloadGenerator.php b/src/Composer/Autoload/AutoloadGenerator.php index b0fe9b232..512b25f84 100644 --- a/src/Composer/Autoload/AutoloadGenerator.php +++ b/src/Composer/Autoload/AutoloadGenerator.php @@ -460,9 +460,10 @@ REGISTER_AUTOLOAD; REGISTER_LOADER; if ($useIncludeFiles) { - $file .= <<