Skip to content

Commit cd9967c

Browse files
committed
refactor: use get_debug_type() instead of var_export()
1 parent 4f1ec7d commit cd9967c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

system/Database/DataConverter/Cast/BaseCast.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,6 @@ public static function toDatabase($value, array $params = [])
3939
*/
4040
protected static function invalidTypeValueError(mixed $value): never
4141
{
42-
throw new TypeError('Invalid type value: ' . var_export($value, true));
42+
throw new TypeError('Invalid type: ' . get_debug_type($value));
4343
}
4444
}

0 commit comments

Comments
 (0)