diff --git a/src/Param/ParamValueConverterRegistry.php b/src/Param/ParamValueConverterRegistry.php index b2d2e3c..331d967 100644 --- a/src/Param/ParamValueConverterRegistry.php +++ b/src/Param/ParamValueConverterRegistry.php @@ -266,7 +266,7 @@ private static function decimalConverter(): Closure private static function dateConverter(): Closure { - return static fn (DateTimeInterface|string|float $value) => $value instanceof DateTimeInterface + return static fn (DateTimeInterface|string|int|float $value) => $value instanceof DateTimeInterface ? $value->format('Y-m-d') : $value; }