Skip to content

Commit

Permalink
Prevent str_replace warning when using Debugbar
Browse files Browse the repository at this point in the history
  • Loading branch information
duncanmcclean committed Nov 20, 2024
1 parent aeb4b9b commit 4201c1e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/View/Debugbar/AntlersProfiler/PerformanceCollector.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,10 @@ protected function getEditorHref($filePath, $line)
*/
protected function replaceSitesPath($filePath)
{
if (! config('debugbar.remote_sites_path')) {
return $filePath;
}

return str_replace(config('debugbar.remote_sites_path'), config('debugbar.local_sites_path'), $filePath);
}

Expand Down

0 comments on commit 4201c1e

Please sign in to comment.