From 47d69b6080d565847e8e1c0353934fee31a55615 Mon Sep 17 00:00:00 2001 From: Abdul Malik Ikhsan Date: Sun, 29 Dec 2024 01:15:51 +0700 Subject: [PATCH] refactor: update var_export() return --- app/Views/errors/cli/error_exception.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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