From 452ac383b4b4ea31430b96e444803ecd59e1cbb6 Mon Sep 17 00:00:00 2001 From: Dave Mc Nicoll Date: Tue, 29 Nov 2022 19:55:26 +0000 Subject: [PATCH] - Added a '?' whenever we're missing an information --- src/Dump.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Dump.php b/src/Dump.php index 24fd01b..bf96eee 100644 --- a/src/Dump.php +++ b/src/Dump.php @@ -34,6 +34,9 @@ class Dump { public function renderHtml() { $data = $this->getDumpContent(); + $this->trace['file'] ??= "?"; + $this->trace['line'] ??= "?"; + return <<
[ file: {$this->trace['file']}:{$this->trace['line']} ]