Skip to content

Commit

Permalink
XmlSerializationVisitor::visitArray returns void which violates the i…
Browse files Browse the repository at this point in the history
…nterface
  • Loading branch information
Tobion committed Apr 23, 2021
1 parent 7f3c6ee commit b69e04a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Handler/IteratorHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit b69e04a

Please sign in to comment.