From 1064e2973fcb1a1595b0ca0e059f5bdb5832b053 Mon Sep 17 00:00:00 2001 From: Rasmus Schultz Date: Fri, 5 Apr 2024 16:28:08 +0200 Subject: [PATCH] ouch! the ?? operator is right-associative! major whoopsie. that's what you get for making quick edits on github without running the tests. what was I thinking. --- src/TestDriver.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/TestDriver.php b/src/TestDriver.php index 5bbb6c3..956d1eb 100644 --- a/src/TestDriver.php +++ b/src/TestDriver.php @@ -381,7 +381,7 @@ public function trace(): string for ($i=count($traces)-1; $i>=0; $i--) { $trace = $traces[$i]; - if ($trace['file'] ?? null === $current_file) { + if (($trace['file'] ?? null) === $current_file) { $selected_trace = $trace; } }