mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-10-15 09:49:41 +00:00
Add getSupportedTypes method for (de)normalizerInterface implementations
This commit is contained in:
@@ -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));
|
||||
|
Reference in New Issue
Block a user