Skip to content

Commit 5b453a1

Browse files
committed
Add missing psalm annotation
1 parent 679e6e5 commit 5b453a1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Builder/Encoder/DateTimeEncoder.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ final class DateTimeEncoder extends AbstractExpressionEncoder
1818
/** @template-use EncodeIfSupported<UTCDateTime, DateTimeInterface> */
1919
use EncodeIfSupported;
2020

21+
/** @psalm-assert-if-true DateTimeInterface $value */
2122
public function canEncode(mixed $value): bool
2223
{
2324
return $value instanceof DateTimeInterface;

0 commit comments

Comments
 (0)