Revert "改名"

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