Skip to content

Commit

Permalink
ouch! the ?? operator is right-associative! major whoopsie. that's wh…
Browse files Browse the repository at this point in the history
…at you get for making quick edits on github without running the tests. what was I thinking.
  • Loading branch information
mindplay-dk committed Apr 5, 2024
1 parent 32d48fb commit 1064e29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/TestDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit 1064e29

Please sign in to comment.