Skip to content

Commit 52fd981

Browse files
authored
fix(elasticsearch): change normalize return type to compatible with other normalizers (#6493)
1 parent d7a5d54 commit 52fd981

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Elasticsearch/Serializer/ItemNormalizer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ public function supportsDenormalization(mixed $data, string $type, ?string $form
8888
/**
8989
* {@inheritdoc}
9090
*/
91-
public function normalize(mixed $object, ?string $format = null, array $context = []): array
91+
public function normalize(mixed $object, ?string $format = null, array $context = []): \ArrayObject|array|string|int|float|bool|null
9292
{
9393
return $this->decorated->normalize($object, $format, $context);
9494
}

0 commit comments

Comments
 (0)