mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-12-18 08:05:41 +00:00
Rector changes and immplementations of required methods
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user