parent
af1c41c2fc
commit
d1f77c6d0d
@ -750,7 +750,9 @@ abstract class Kernel implements KernelInterface, TerminableInterface
|
||||
return preg_replace_callback("{'([^']*)(".preg_quote($rootDir)."[^']*)'}", function ($match) use ($filesystem, $cacheDir) {
|
||||
$prefix = isset($match[1]) && $match[1] ? "'$match[1]'.__DIR__" : "__DIR__";
|
||||
|
||||
if ('.' === $relativePath = rtrim($filesystem->makePathRelative($match[2], $cacheDir), '/')) {
|
||||
$relativePath = rtrim($filesystem->makePathRelative($match[2], $cacheDir), '/');
|
||||
|
||||
if ($relativePath === '.') {
|
||||
return $prefix;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user