diff --git a/system/Entity/Cast/BooleanCast.php b/system/Entity/Cast/BooleanCast.php index f46f5f5326bb..f6851506492c 100644 --- a/system/Entity/Cast/BooleanCast.php +++ b/system/Entity/Cast/BooleanCast.php @@ -23,4 +23,12 @@ public static function get($value, array $params = []): bool { return (bool) $value; } + + /** + * {@inheritDoc} + */ + public static function set($value, array $params = []): bool + { + return (bool) $value; + } } diff --git a/system/Entity/Cast/FloatCast.php b/system/Entity/Cast/FloatCast.php index 78f87570f32c..43a166f308a5 100644 --- a/system/Entity/Cast/FloatCast.php +++ b/system/Entity/Cast/FloatCast.php @@ -23,4 +23,12 @@ public static function get($value, array $params = []): float { return (float) $value; } + + /** + * {@inheritDoc} + */ + public static function set($value, array $params = []): float + { + return (float) $value; + } } diff --git a/system/Entity/Cast/IntegerCast.php b/system/Entity/Cast/IntegerCast.php index b9357d7ed49b..a47242ce7958 100644 --- a/system/Entity/Cast/IntegerCast.php +++ b/system/Entity/Cast/IntegerCast.php @@ -23,4 +23,12 @@ public static function get($value, array $params = []): int { return (int) $value; } + + /** + * {@inheritDoc} + */ + public static function set($value, array $params = []): int + { + return (int) $value; + } } diff --git a/system/Entity/Cast/StringCast.php b/system/Entity/Cast/StringCast.php index 974567ccb62a..915158eaa32d 100644 --- a/system/Entity/Cast/StringCast.php +++ b/system/Entity/Cast/StringCast.php @@ -23,4 +23,12 @@ public static function get($value, array $params = []): string { return (string) $value; } + + /** + * {@inheritDoc} + */ + public static function set($value, array $params = []): string + { + return (string) $value; + } }