Skip to content

Commit 845efd5

Browse files
bpolaszeknorkunas
authored andcommitted
tests: fix deprecation notice
1 parent 074a14c commit 845efd5

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/Services/UnixTimestampNormalizer.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,11 @@ public function supportsNormalization($data, string $format = null, array $conte
2323
{
2424
return $data instanceof \DateTimeInterface && true === ($context['meilisearch'] ?? null);
2525
}
26+
27+
public function getSupportedTypes(?string $format): array
28+
{
29+
return [
30+
\DateTimeInterface::class => true, // @codeCoverageIgnore
31+
];
32+
}
2633
}

0 commit comments

Comments
 (0)