diff --git a/src/Tracy/BlueScreen/BlueScreen.php b/src/Tracy/BlueScreen/BlueScreen.php index e9bdce188..7158d8e0f 100644 --- a/src/Tracy/BlueScreen/BlueScreen.php +++ b/src/Tracy/BlueScreen/BlueScreen.php @@ -245,7 +245,7 @@ private function renderActions(\Throwable $ex): array $class = $m[2]; if ( !class_exists($class, false) && !interface_exists($class, false) && !trait_exists($class, false) - && ($file = Helpers::guessClassFile($class)) && !is_file($file) + && ($file = Helpers::guessClassFile($class)) && !@is_file($file) // @ - may trigger error ) { [$content, $line] = $this->generateNewFileContents($file, $class); $actions[] = [ @@ -257,7 +257,7 @@ private function renderActions(\Throwable $ex): array if (preg_match('# ([\'"])((?:/|[a-z]:[/\\\\])\w[^\'"]+\.\w{2,5})\1#i', $ex->getMessage(), $m)) { $file = $m[2]; - if (is_file($file)) { + if (@is_file($file)) { // @ - may trigger error $label = 'open'; $content = ''; $line = 1; @@ -509,7 +509,7 @@ function ($m) { // clickable file name $msg = preg_replace_callback( '#([\w\\\\/.:-]+\.(?:php|phpt|phtml|latte|neon))(?|:(\d+)| on line (\d+))?#', - fn($m) => @is_file($m[1]) + fn($m) => @is_file($m[1]) // @ - may trigger error ? '' . $m[0] . '' : $m[0], $msg, diff --git a/src/Tracy/BlueScreen/assets/section-lastMutedError.phtml b/src/Tracy/BlueScreen/assets/section-lastMutedError.phtml index 7e5565f4a..a4f79f73c 100644 --- a/src/Tracy/BlueScreen/assets/section-lastMutedError.phtml +++ b/src/Tracy/BlueScreen/assets/section-lastMutedError.phtml @@ -19,7 +19,7 @@ if (!$lastError) {

:

Note: the last muted error may have nothing to do with the thrown exception.

- +

diff --git a/src/Tracy/BlueScreen/assets/section-stack-callStack.phtml b/src/Tracy/BlueScreen/assets/section-stack-callStack.phtml index 9b9cbe639..f475c1b75 100644 --- a/src/Tracy/BlueScreen/assets/section-stack-callStack.phtml +++ b/src/Tracy/BlueScreen/assets/section-stack-callStack.phtml @@ -21,10 +21,10 @@ if (!$stack) {
$row): ?> - +
- + inner-code @@ -42,7 +42,7 @@ if (!$stack) {
- +
diff --git a/src/Tracy/BlueScreen/assets/section-stack-sourceFile.phtml b/src/Tracy/BlueScreen/assets/section-stack-sourceFile.phtml index a678c2eab..a3d72e230 100644 --- a/src/Tracy/BlueScreen/assets/section-stack-sourceFile.phtml +++ b/src/Tracy/BlueScreen/assets/section-stack-sourceFile.phtml @@ -10,7 +10,7 @@ namespace Tracy; * @var int $expanded */ -$sourceOriginal = $file && is_file($file) ? [$file, $line] : null; +$sourceOriginal = $file && @is_file($file) ? [$file, $line] : null; // @ - may trigger error $sourceMapped = $sourceOriginal ? Debugger::mapSource($file, $line) : null; ?> diff --git a/src/Tracy/Dumper/Describer.php b/src/Tracy/Dumper/Describer.php index e815619cf..72d330f91 100644 --- a/src/Tracy/Dumper/Describer.php +++ b/src/Tracy/Dumper/Describer.php @@ -345,7 +345,7 @@ private static function findLocation(): ?array break; } - if (isset($location['file'], $location['line']) && is_file($location['file'])) { + if (isset($location['file'], $location['line']) && @is_file($location['file'])) { // @ - may trigger error $lines = file($location['file']); $line = $lines[$location['line'] - 1]; return [ diff --git a/src/Tracy/Helpers.php b/src/Tracy/Helpers.php index f4c65d9f4..ff00284f5 100644 --- a/src/Tracy/Helpers.php +++ b/src/Tracy/Helpers.php @@ -58,7 +58,7 @@ public static function editorUri( string $replace = '', ): ?string { - if (Debugger::$editor && $file && ($action === 'create' || is_file($file))) { + if (Debugger::$editor && $file && ($action === 'create' || @is_file($file))) { // @ - may trigger error $file = strtr($file, '/', DIRECTORY_SEPARATOR); $file = strtr($file, Debugger::$editorMapping); $search = str_replace("\n", PHP_EOL, $search);