From c4255434911a716e24ffb9136e4d61778d235108 Mon Sep 17 00:00:00 2001 From: whwyy Date: Wed, 13 Dec 2023 19:25:04 +0800 Subject: [PATCH] eee --- function.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/function.php b/function.php index 748675a9..ae547888 100644 --- a/function.php +++ b/function.php @@ -943,7 +943,15 @@ if (!function_exists('throwable')) { $trance = $throwable->getTrace(); $current = array_shift($trance); - $message .= ' Trance: ' . $current['file'] . ' -> ' . (isset($current['class']) ? $current['class'] . '::' : '') . ($current['function'] ?? 'Closure') . ' line ' . $line . PHP_EOL; + + + if (!isset($current['file'])) { + $current['file'] = $file; + } + if (!isset($current['line'])) { + $current['line'] = $line; + } + $message .= ' Trance: ' . $current['file'] . ' -> ' . (isset($current['class']) ? $current['class'] . '::' : '') . ($current['function'] ?? 'Closure') . ' line ' . $current['line'] . PHP_EOL; foreach ($trance as $value) { if (!isset($value['file'])) {