diff --git a/src/Helpers/RequestHydrator.php b/src/Helpers/RequestHydrator.php index cef34f7..73859a5 100644 --- a/src/Helpers/RequestHydrator.php +++ b/src/Helpers/RequestHydrator.php @@ -34,11 +34,7 @@ public static function castValueToBuiltInType(mixed $value, string $type, bool $ return new DateTimeImmutable($value); //@phpstan-ignore-line default: - if (!is_scalar($value)) { - return null; - } - - return (string) $value; + return (string) $value; //@phpstan-ignore-line } }