We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 39e4600 commit 86c519eCopy full SHA for 86c519e
Dumper/Preloader.php
@@ -27,7 +27,7 @@ public static function append(string $file, array $list): void
27
28
foreach ($list as $item) {
29
if (0 === strpos($item, $cacheDir)) {
30
- file_put_contents($file, sprintf("require_once __DIR__.%s;\n", var_export(substr($item, \strlen($cacheDir)), true)), \FILE_APPEND);
+ file_put_contents($file, sprintf("require_once __DIR__.%s;\n", var_export(strtr(substr($item, \strlen($cacheDir)), \DIRECTORY_SEPARATOR, '/'), true)), \FILE_APPEND);
31
continue;
32
}
33
0 commit comments