Revert "改名"

This reverts commit fdf58326
This commit is contained in:
2022-01-12 18:08:28 +08:00
parent 54f19fb058
commit 4605fc9162
+4 -7
View File
@@ -1242,18 +1242,15 @@ if (!function_exists('error_trigger_format')) {
function error_trigger_format(\Throwable|\Error $throwable): string function error_trigger_format(\Throwable|\Error $throwable): string
{ {
$message = ' $message = '
Throwable: ' . $throwable->getMessage() . ' Throwable: ' . $throwable->getMessage() . "\t\n" . ' ' . $throwable->getFile() . " at line " . $throwable->getLine() . "\t\n";
' . $throwable->getFile() . " at line " . $throwable->getLine();
$message .= ' $message .= ' trance' . "\t\n";
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'] . '->' . $value['line'] . '(' . ($value['class'] ?? 'static') . '::' . ($value['function'] ?? 'function') . ')'; ' . $value['file'] . '->' . $value['line'] . '(' . ($value['class'] ?? 'static') . '::' . ($value['function'] ?? 'function') . ')' . "\t";
} }
return print_r("\033[1;31,37m" . $message . "\33[41m", true); return print_r("\033[1;31,37m" . $message . "\33[41m", true);
} }