Skip to content

Commit 173ef37

Browse files
committed
Fix some tests
1 parent b1b9213 commit 173ef37

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

src/Graphql/Serializer/ItemNormalizer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public function normalize($object, $format = null, array $context = [])
4747
/**
4848
* {@inheritdoc}
4949
*/
50-
protected function normalizeCollectionOfRelations(PropertyMetadata $propertyMetadata, iterable $attributeValue, string $resourceClass, string $format = null, array $context): array
50+
protected function normalizeCollectionOfRelations(PropertyMetadata $propertyMetadata, $attributeValue, string $resourceClass, string $format = null, array $context): array
5151
{
5252
// to-many are handled directly by the GraphQL resolver
5353
return [];

src/Serializer/AbstractItemNormalizer.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -435,10 +435,9 @@ protected function getAttributeValue($object, $attribute, $format = null, array
435435
/**
436436
* Normalizes a collection of relations (to-many).
437437
*
438-
* @param object $relatedObject
439-
* @param string|null $format
438+
* @param iterable $attributeValue
440439
*/
441-
protected function normalizeCollectionOfRelations(PropertyMetadata $propertyMetadata, iterable $attributeValue, string $resourceClass, string $format = null, array $context): array
440+
protected function normalizeCollectionOfRelations(PropertyMetadata $propertyMetadata, $attributeValue, string $resourceClass, string $format = null, array $context): array
442441
{
443442
$value = [];
444443
foreach ($attributeValue as $index => $obj) {

0 commit comments

Comments
 (0)