Add getSupportedTypes method for (de)normalizerInterface implementations

This commit is contained in:
2025-05-26 11:21:59 +02:00
parent 9fcc1634f5
commit a5049ddefb
34 changed files with 277 additions and 2 deletions

View File

@@ -136,6 +136,11 @@ final class UserNormalizerTest extends TestCase
{
return true;
}
public function getSupportedTypes(?string $format): array
{
return ['*' => true];
}
});
$this->assertEquals($expected, $normalizer->normalize($user, $format, $context));