From cd9967cf257d9d8dec06cbfc24ce67e4aac1bd49 Mon Sep 17 00:00:00 2001 From: kenjis Date: Mon, 20 Nov 2023 17:36:15 +0900 Subject: [PATCH] refactor: use get_debug_type() instead of var_export() --- system/Database/DataConverter/Cast/BaseCast.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/Database/DataConverter/Cast/BaseCast.php b/system/Database/DataConverter/Cast/BaseCast.php index d35b761622f5..3d3ec35946ef 100644 --- a/system/Database/DataConverter/Cast/BaseCast.php +++ b/system/Database/DataConverter/Cast/BaseCast.php @@ -39,6 +39,6 @@ public static function toDatabase($value, array $params = []) */ protected static function invalidTypeValueError(mixed $value): never { - throw new TypeError('Invalid type value: ' . var_export($value, true)); + throw new TypeError('Invalid type: ' . get_debug_type($value)); } }