File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
src/Symfony/Component/HttpKernel Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -750,13 +750,11 @@ private function removeAbsolutePathsFromContainer($content)
750
750
return preg_replace_callback ("{'([^']*)( " .preg_quote ($ rootDir )."[^']*)'} " , function ($ match ) use ($ filesystem , $ cacheDir ) {
751
751
$ prefix = isset ($ match [1 ]) && $ match [1 ] ? "' $ match [1 ]'.__DIR__ " : "__DIR__ " ;
752
752
753
- $ relativePath = rtrim ($ filesystem ->makePathRelative ($ match [2 ], $ cacheDir ), '/ ' );
754
-
755
- if ($ relativePath === '. ' ) {
753
+ if ('. ' === $ relativePath = rtrim ($ filesystem ->makePathRelative ($ match [2 ], $ cacheDir ), '/ ' )) {
756
754
return $ prefix ;
757
755
}
758
756
759
- return $ prefix . ".'/ " . $ relativePath . "' " ;
757
+ return $ prefix. ".'/ " . $ relativePath. "' " ;
760
758
}, $ content );
761
759
}
762
760
You can’t perform that action at this time.
0 commit comments