Skip to content

Commit

Permalink
Allow normalization on classes implementing \Traversable interface
Browse files Browse the repository at this point in the history
  • Loading branch information
renaudclosset authored and soyuka committed Apr 15, 2020
1 parent cc1a0fa commit 18a41fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Serializer/AbstractItemNormalizer.php
Expand Up @@ -90,7 +90,7 @@ public function __construct(PropertyNameCollectionFactoryInterface $propertyName
*/
public function supportsNormalization($data, $format = null)
{
if (!\is_object($data) || $data instanceof \Traversable) {
if (!\is_object($data)) {
return false;
}

Expand Down

0 comments on commit 18a41fe

Please sign in to comment.