Skip to content

Commit

Permalink
the deserializer should convert the iterable
Browse files Browse the repository at this point in the history
  • Loading branch information
goetas committed May 4, 2020
1 parent 17aa47b commit 02431ce
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/GraphNavigator/DeserializationGraphNavigator.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
use JMS\Serializer\Exception\RuntimeException;
use JMS\Serializer\Exclusion\ExpressionLanguageExclusionStrategy;
use JMS\Serializer\Expression\ExpressionEvaluatorInterface;
use JMS\Serializer\Functions;
use JMS\Serializer\GraphNavigator;
use JMS\Serializer\GraphNavigatorInterface;
use JMS\Serializer\Handler\HandlerRegistryInterface;
Expand Down Expand Up @@ -134,7 +133,7 @@ public function accept($data, ?array $type = null)
return $this->visitor->visitDouble($data, $type);

case 'iterable':
return $this->visitor->visitArray(Functions::iterableToArray($data), $type);
return $this->visitor->visitArray($data, $type);

case 'array':
return $this->visitor->visitArray($data, $type);
Expand Down

0 comments on commit 02431ce

Please sign in to comment.