Skip to content

Commit 4410e25

Browse files
committed
bug #36793 [DI][Preload] Use require_once instead of require when appending cache warmer-returned files to preload file.
1 parent eea0773 commit 4410e25

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Dumper/Preloader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public static function append(string $file, array $list): void
2727

2828
foreach ($list as $item) {
2929
if (0 === strpos($item, $cacheDir)) {
30-
file_put_contents($file, sprintf("require __DIR__.%s;\n", var_export(substr($item, \strlen($cacheDir)), true)), FILE_APPEND);
30+
file_put_contents($file, sprintf("require_once __DIR__.%s;\n", var_export(substr($item, \strlen($cacheDir)), true)), FILE_APPEND);
3131
continue;
3232
}
3333

0 commit comments

Comments
 (0)