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 fa6002b commit d04b3dcCopy full SHA for d04b3dc
src/PhpDebugBarMiddleware.php
@@ -83,11 +83,15 @@ private function getStaticFile(UriInterface $uri)
83
return;
84
}
85
86
- if (empty($uri->getBasePath())) {
87
- return;
+ if (method_exists($uri, 'getBasePath')) {
+ if (empty($uri->getBasePath())) {
88
+ return;
89
+ }
90
+ $path = $uri->getBasePath() ?: $uri->getPath();
91
+ } else {
92
+ $path = $uri->getPath();
93
94
- $path = $uri->getBasePath() ?: $uri->getPath();
95
$pathToFile = substr($path, strlen($this->debugBarRenderer->getBaseUrl()));
96
97
$fullPathToFile = $this->debugBarRenderer->getBasePath() . $pathToFile;
0 commit comments