Rector changes and immplementations of required methods

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

View File

@@ -24,7 +24,7 @@ class CollectionNormalizer implements NormalizerAwareInterface, NormalizerInterf
* @param Collection $collection
* @param string|null $format
*/
public function normalize($collection, $format = null, array $context = [])
public function normalize($collection, $format = null, array $context = []): string|int|float|bool|\ArrayObject|array|null
{
$paginator = $collection->getPaginator();
@@ -41,7 +41,7 @@ class CollectionNormalizer implements NormalizerAwareInterface, NormalizerInterf
];
}
public function supportsNormalization($data, $format = null): bool
public function supportsNormalization($data, $format = null, array $context = []): bool
{
return $data instanceof Collection;
}