mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-28 01:25:00 +00:00
Rector changes and immplementations of required methods
This commit is contained in:
@@ -23,7 +23,7 @@ class SocialActionNormalizer implements NormalizerAwareInterface, NormalizerInte
|
||||
|
||||
public function __construct(private readonly SocialActionRender $render) {}
|
||||
|
||||
public function normalize($socialAction, $format = null, array $context = [])
|
||||
public function normalize($socialAction, $format = null, array $context = []): string|int|float|bool|\ArrayObject|array|null
|
||||
{
|
||||
switch ($format) {
|
||||
case 'json':
|
||||
@@ -57,7 +57,7 @@ class SocialActionNormalizer implements NormalizerAwareInterface, NormalizerInte
|
||||
}
|
||||
}
|
||||
|
||||
public function supportsNormalization($data, $format = null, array $context = [])
|
||||
public function supportsNormalization($data, $format = null, array $context = []): bool
|
||||
{
|
||||
if ($data instanceof SocialAction && 'json' === $format) {
|
||||
return true;
|
||||
|
Reference in New Issue
Block a user