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 4d6cad5 commit 51ecc78Copy full SHA for 51ecc78
Kernel.php
@@ -750,11 +750,13 @@ private function removeAbsolutePathsFromContainer($content)
750
return preg_replace_callback("{'([^']*)(".preg_quote($rootDir)."[^']*)'}", function ($match) use ($filesystem, $cacheDir) {
751
$prefix = isset($match[1]) && $match[1] ? "'$match[1]'.__DIR__" : "__DIR__";
752
753
- if ('.' === $relativePath = rtrim($filesystem->makePathRelative($match[2], $cacheDir), '/')) {
+ $relativePath = rtrim($filesystem->makePathRelative($match[2], $cacheDir), '/');
754
+
755
+ if ($relativePath === '.') {
756
return $prefix;
757
}
758
- return $prefix.".'/".$relativePath."'";
759
+ return $prefix . ".'/" . $relativePath . "'";
760
}, $content);
761
762
0 commit comments