Merge pull request #2221 from Alan01252/fix-unexpectedas
Fix parse error thrown in PHP5.5+pull/2210/merge
commit
4b38158185
|
@ -460,9 +460,10 @@ REGISTER_AUTOLOAD;
|
|||
REGISTER_LOADER;
|
||||
|
||||
if ($useIncludeFiles) {
|
||||
$file .= <<<INCLUDE_FILES
|
||||
foreach (require __DIR__ . '/autoload_files.php' as \$file) {
|
||||
require \$file;
|
||||
$file .= <<<'INCLUDE_FILES'
|
||||
$includeFiles = require __DIR__ . '/autoload_files.php';
|
||||
foreach ($includeFiles as $file) {
|
||||
require $file;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -38,7 +38,8 @@ class ComposerAutoloaderInitFilesAutoloadOrder
|
|||
|
||||
$loader->register(true);
|
||||
|
||||
foreach (require __DIR__ . '/autoload_files.php' as $file) {
|
||||
$includeFiles = require __DIR__ . '/autoload_files.php';
|
||||
foreach ($includeFiles as $file) {
|
||||
require $file;
|
||||
}
|
||||
|
||||
|
|
|
@ -38,7 +38,8 @@ class ComposerAutoloaderInitFilesAutoload
|
|||
|
||||
$loader->register(true);
|
||||
|
||||
foreach (require __DIR__ . '/autoload_files.php' as $file) {
|
||||
$includeFiles = require __DIR__ . '/autoload_files.php';
|
||||
foreach ($includeFiles as $file) {
|
||||
require $file;
|
||||
}
|
||||
|
||||
|
|
|
@ -40,7 +40,8 @@ class ComposerAutoloaderInitTargetDir
|
|||
|
||||
$loader->register(true);
|
||||
|
||||
foreach (require __DIR__ . '/autoload_files.php' as $file) {
|
||||
$includeFiles = require __DIR__ . '/autoload_files.php';
|
||||
foreach ($includeFiles as $file) {
|
||||
require $file;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue