We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 679e6e5 commit 5b453a1Copy full SHA for 5b453a1
src/Builder/Encoder/DateTimeEncoder.php
@@ -18,6 +18,7 @@ final class DateTimeEncoder extends AbstractExpressionEncoder
18
/** @template-use EncodeIfSupported<UTCDateTime, DateTimeInterface> */
19
use EncodeIfSupported;
20
21
+ /** @psalm-assert-if-true DateTimeInterface $value */
22
public function canEncode(mixed $value): bool
23
{
24
return $value instanceof DateTimeInterface;
0 commit comments