Skip to content

Commit 18a41fe

Browse files
renaudclossetsoyuka
authored andcommitted
Allow normalization on classes implementing \Traversable interface
1 parent cc1a0fa commit 18a41fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Serializer/AbstractItemNormalizer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ public function __construct(PropertyNameCollectionFactoryInterface $propertyName
9090
*/
9191
public function supportsNormalization($data, $format = null)
9292
{
93-
if (!\is_object($data) || $data instanceof \Traversable) {
93+
if (!\is_object($data)) {
9494
return false;
9595
}
9696

0 commit comments

Comments
 (0)