Skip to content

Commit 101683b

Browse files
committed
Merge branch '2.3' into 2.7
* 2.3: [Process] Remove a misleading comment Improve the phpdoc of SplFileInfo methods [Process] Use stream based storage to avoid memory issues Fixed the documentation of VoterInterface::supportsAttribute Remove useless duplicated tests [FrameworkBundle] Optimize framework extension tests Use is_subclass_of instead of Reflection when possible
2 parents 7051fa3 + e60af9d commit 101683b

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Normalizer/CustomNormalizer.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,6 @@ public function supportsNormalization($data, $format = null)
5959
*/
6060
public function supportsDenormalization($data, $type, $format = null)
6161
{
62-
$class = new \ReflectionClass($type);
63-
64-
return $class->isSubclassOf('Symfony\Component\Serializer\Normalizer\DenormalizableInterface');
62+
return is_subclass_of($type, 'Symfony\Component\Serializer\Normalizer\DenormalizableInterface');
6563
}
6664
}

0 commit comments

Comments
 (0)