Skip to content

Commit 39dcf8b

Browse files
author
Jelle van Oosterbosch
committed
Updated support check according to feedback for the IterableNormalizer
1 parent fc6422c commit 39dcf8b

1 file changed

Lines changed: 1 addition & 7 deletions

File tree

Serializer/Normalizer/IterableNormalizer.php

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,7 @@ class IterableNormalizer implements NormalizerInterface, NormalizerAwareInterfac
3030
*/
3131
public function supportsNormalization($data, $format = null)
3232
{
33-
if (true === is_object($data) &&
34-
(is_array($data) || (is_object($data)) && ($data instanceof \Traversable))
35-
) {
36-
return true;
37-
}
38-
39-
if (true === is_array($data)) {
33+
if (is_array($data) || $data instanceof \Traversable) {
4034
return true;
4135
}
4236

0 commit comments

Comments
 (0)