Revert "改名"

This reverts commit fdf58326
This commit is contained in:
2022-01-12 18:26:54 +08:00
parent 94851c3f51
commit cfbebeb951
+3 -5
View File
@@ -1241,16 +1241,14 @@ if (!function_exists('error_trigger_format')) {
*/ */
function error_trigger_format(\Throwable|\Error $throwable): string function error_trigger_format(\Throwable|\Error $throwable): string
{ {
$message = ' $message = "\tThrowable: " . $throwable->getMessage() . "\t\n\t" . ' ' . $throwable->getFile() . " at line " . $throwable->getLine();
Throwable: ' . $throwable->getMessage() . "\t\n" . ' ' . $throwable->getFile() . " at line " . $throwable->getLine() . "\t\n";
$message .= ' trance' . "\t\n"; $message .= "\t trance";
foreach ($throwable->getTrace() as $value) { foreach ($throwable->getTrace() as $value) {
if (!isset($value['file'])) { if (!isset($value['file'])) {
continue; continue;
} }
$message .= ' $message .= "\t" . $value['file'] . "\t" . $value['line'] . "\t" . ($value['class'] ?? 'static') . '::' . ($value['function'] ?? 'function');
' . $value['file'] . "\t" . $value['line'] . "\t" . ($value['class'] ?? 'static') . '::' . ($value['function'] ?? 'function') . "\t";
} }
return "\033[41;37m" . $message . "\033[0m"; return "\033[41;37m" . $message . "\033[0m";
} }