From 5003bedb6ca7ada1f88be350a81867a7457f018a Mon Sep 17 00:00:00 2001 From: Daniel Morell Date: Fri, 13 May 2022 09:14:16 -0500 Subject: [PATCH] Fixed #571 added null check on $filename --- src/DataBuilder.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/DataBuilder.php b/src/DataBuilder.php index 87fe0c96..43d5bd2e 100644 --- a/src/DataBuilder.php +++ b/src/DataBuilder.php @@ -499,7 +499,7 @@ public function makeFrames($exception, $includeContext) private function addCodeContextToFrame(Frame $frame, $filename, $line) { - if (!file_exists($filename)) { + if (null === $filename || !file_exists($filename)) { return; }