Skip to content

Commit 9a90f8e

Browse files
authored
fix: allow int value as DateTime param (#289)
1 parent 88fa104 commit 9a90f8e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Param/ParamValueConverterRegistry.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ private static function decimalConverter(): Closure
266266

267267
private static function dateConverter(): Closure
268268
{
269-
return static fn (DateTimeInterface|string|float $value) => $value instanceof DateTimeInterface
269+
return static fn (DateTimeInterface|string|int|float $value) => $value instanceof DateTimeInterface
270270
? $value->format('Y-m-d')
271271
: $value;
272272
}

0 commit comments

Comments
 (0)