Revert "改名"

This reverts commit fdf58326
This commit is contained in:
2022-01-12 17:55:25 +08:00
parent 19b3f0f1e9
commit f2ad97c7f0
+6 -3
View File
@@ -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;
}