Skip to content

Commit

Permalink
refactor: use get_debug_type() instead of var_export()
Browse files Browse the repository at this point in the history
  • Loading branch information
kenjis committed Nov 20, 2023
1 parent 4f1ec7d commit cd9967c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion system/Database/DataConverter/Cast/BaseCast.php
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
}

0 comments on commit cd9967c

Please sign in to comment.