Rector changes and immplementations of required methods

This commit is contained in:
2025-05-22 17:47:07 +02:00
parent 053b92b77c
commit 17db59d221
1138 changed files with 2656 additions and 2616 deletions

View File

@@ -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;