Skip to content

Commit 8817b96

Browse files
[appveyor] Fix failure reporting
1 parent 4830b1d commit 8817b96

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Normalizer/CustomNormalizer.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,10 @@ public function supportsNormalization($data, $format = null)
5959
*/
6060
public function supportsDenormalization($data, $type, $format = null)
6161
{
62+
if (PHP_VERSION_ID < 50307) {
63+
return class_exists($type) && in_array('Symfony\Component\Serializer\Normalizer\DenormalizableInterface', class_implements($type), true);
64+
}
65+
6266
return is_subclass_of($type, 'Symfony\Component\Serializer\Normalizer\DenormalizableInterface');
6367
}
6468
}

0 commit comments

Comments
 (0)