From b69e04a7f23512b7f2dd485aa7ab9454f77a52e3 Mon Sep 17 00:00:00 2001 From: Tobias Schultze Date: Sat, 24 Apr 2021 00:39:10 +0200 Subject: [PATCH] XmlSerializationVisitor::visitArray returns void which violates the interface --- src/Handler/IteratorHandler.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Handler/IteratorHandler.php b/src/Handler/IteratorHandler.php index faeaa15b4..cdc1e8515 100644 --- a/src/Handler/IteratorHandler.php +++ b/src/Handler/IteratorHandler.php @@ -77,14 +77,14 @@ public static function getSubscribingMethods() } /** - * @return array|\ArrayObject + * @return array|\ArrayObject|null */ public function serializeIterable( SerializationVisitorInterface $visitor, iterable $iterable, array $type, SerializationContext $context - ): iterable { + ): ?iterable { $type['name'] = 'array'; $context->stopVisiting($iterable);