From f2ad97c7f0488ca0e9eee38590b1be9b21355334 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Wed, 12 Jan 2022 17:55:25 +0800 Subject: [PATCH] =?UTF-8?q?Revert=20"=E6=94=B9=E5=90=8D"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit fdf58326 --- function.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/function.php b/function.php index b234916c..0d7e023f 100644 --- a/function.php +++ b/function.php @@ -1241,15 +1241,18 @@ if (!function_exists('error_trigger_format')) { */ function error_trigger_format(\Throwable|\Error $throwable): string { - $message = 'Throwable: ' . $throwable->getMessage() . ' + $message = ' +Throwable: ' . $throwable->getMessage() . ' ' . $throwable->getFile() . " at line " . $throwable->getLine() . "\r\n"; - $message .= 'trance' . "\r\n"; + $message .= ' + trance' . "\r\n"; foreach ($throwable->getTrace() as $value) { if (!isset($value['file'])) { continue; } - $message .= $value['file'] . '->' . $value['line'] . '(' . ($value['class'] ?? 'static') . '::' . ($value['function'] ?? 'function') . ')' . PHP_EOL; + $message .= ' + '.$value['file'] . '->' . $value['line'] . '(' . ($value['class'] ?? 'static') . '::' . ($value['function'] ?? 'function') . ')'; } return $message; }