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;
|
REGISTER_LOADER;
|
||||||
|
|
||||||
if ($useIncludeFiles) {
|
if ($useIncludeFiles) {
|
||||||
$file .= <<<INCLUDE_FILES
|
$file .= <<<'INCLUDE_FILES'
|
||||||
foreach (require __DIR__ . '/autoload_files.php' as \$file) {
|
$includeFiles = require __DIR__ . '/autoload_files.php';
|
||||||
require \$file;
|
foreach ($includeFiles as $file) {
|
||||||
|
require $file;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -38,7 +38,8 @@ class ComposerAutoloaderInitFilesAutoloadOrder
|
||||||
|
|
||||||
$loader->register(true);
|
$loader->register(true);
|
||||||
|
|
||||||
foreach (require __DIR__ . '/autoload_files.php' as $file) {
|
$includeFiles = require __DIR__ . '/autoload_files.php';
|
||||||
|
foreach ($includeFiles as $file) {
|
||||||
require $file;
|
require $file;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -38,7 +38,8 @@ class ComposerAutoloaderInitFilesAutoload
|
||||||
|
|
||||||
$loader->register(true);
|
$loader->register(true);
|
||||||
|
|
||||||
foreach (require __DIR__ . '/autoload_files.php' as $file) {
|
$includeFiles = require __DIR__ . '/autoload_files.php';
|
||||||
|
foreach ($includeFiles as $file) {
|
||||||
require $file;
|
require $file;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -40,7 +40,8 @@ class ComposerAutoloaderInitTargetDir
|
||||||
|
|
||||||
$loader->register(true);
|
$loader->register(true);
|
||||||
|
|
||||||
foreach (require __DIR__ . '/autoload_files.php' as $file) {
|
$includeFiles = require __DIR__ . '/autoload_files.php';
|
||||||
|
foreach ($includeFiles as $file) {
|
||||||
require $file;
|
require $file;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue