Revert "改名"
This reverts commit fdf58326
This commit is contained in:
+6
-3
@@ -1241,15 +1241,18 @@ if (!function_exists('error_trigger_format')) {
|
|||||||
*/
|
*/
|
||||||
function error_trigger_format(\Throwable|\Error $throwable): string
|
function error_trigger_format(\Throwable|\Error $throwable): string
|
||||||
{
|
{
|
||||||
$message = 'Throwable: ' . $throwable->getMessage() . '
|
$message = '
|
||||||
|
Throwable: ' . $throwable->getMessage() . '
|
||||||
' . $throwable->getFile() . " at line " . $throwable->getLine() . "\r\n";
|
' . $throwable->getFile() . " at line " . $throwable->getLine() . "\r\n";
|
||||||
|
|
||||||
$message .= 'trance' . "\r\n";
|
$message .= '
|
||||||
|
trance' . "\r\n";
|
||||||
foreach ($throwable->getTrace() as $value) {
|
foreach ($throwable->getTrace() as $value) {
|
||||||
if (!isset($value['file'])) {
|
if (!isset($value['file'])) {
|
||||||
continue;
|
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;
|
return $message;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user