diff --git a/app/Views/errors/cli/error_exception.php b/app/Views/errors/cli/error_exception.php index d551b3317c89..624f3b5b0600 100644 --- a/app/Views/errors/cli/error_exception.php +++ b/app/Views/errors/cli/error_exception.php @@ -50,7 +50,7 @@ $function .= $padClass . $error['function']; } - $args = implode(', ', array_map(static fn ($value): ?string => match (true) { + $args = implode(', ', array_map(static fn ($value): string => match (true) { is_object($value) => 'Object(' . $value::class . ')', is_array($value) => $value !== [] ? '[...]' : '[]', $value === null => 'null', // return the lowercased version