diff options
author | Urban Müller | 2023-08-16 16:17:50 +0200 |
---|---|---|
committer | Urban Müller | 2023-08-16 16:17:50 +0200 |
commit | b0f8ad62a2295b27790af0bb2a1bd233360c93fb (patch) | |
tree | abbfe8e806e81eb96f12be4b6aa953175c05e648 | |
parent | d60d449c76ddef9f6d98d891f3b2e923db66de5b (diff) | |
download | itools-b0f8ad62a2295b27790af0bb2a1bd233360c93fb.tar.gz itools-b0f8ad62a2295b27790af0bb2a1bd233360c93fb.tar.bz2 itools-b0f8ad62a2295b27790af0bb2a1bd233360c93fb.zip |
respect existing but empty traces
-rw-r--r-- | it_debug.class | 2 |
1 files changed, 1 insertions, 1 deletions
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") { |