From b0f8ad62a2295b27790af0bb2a1bd233360c93fb Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Wed, 16 Aug 2023 16:17:50 +0200 Subject: respect existing but empty traces --- it_debug.class | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/it_debug.class b/it_debug.class index 5ed466a..b36c232 100644 --- a/it_debug.class +++ b/it_debug.class @@ -224,7 +224,7 @@ static function dump($args, $p = []) */ static function backtrace($p = array()) { - $frames = $p['trace'] ?: ($p['format'] ? array_slice(debug_backtrace(0), $p['skiplevels']) : null); + $frames = $p['trace'] ?? ($p['format'] ? array_slice(debug_backtrace(0), $p['skiplevels']) : null); if ($p['format'] == "long") { -- cgit v1.2.3