From 711788b7946074d4e54617df3f9cfe20efad5b27 Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Thu, 27 Mar 2014 08:45:48 +0100 Subject: [PATCH] fixed CS --- src/Symfony/Component/Serializer/Serializer.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Symfony/Component/Serializer/Serializer.php b/src/Symfony/Component/Serializer/Serializer.php index 023d680e34..76483d8dd8 100644 --- a/src/Symfony/Component/Serializer/Serializer.php +++ b/src/Symfony/Component/Serializer/Serializer.php @@ -143,7 +143,7 @@ class Serializer implements SerializerInterface, NormalizerInterface, Denormaliz */ public function supportsNormalization($data, $format = null) { - return (bool) $this->getNormalizer($data, $format); + return null !== $this->getNormalizer($data, $format); } /** @@ -151,7 +151,7 @@ class Serializer implements SerializerInterface, NormalizerInterface, Denormaliz */ public function supportsDenormalization($data, $type, $format = null) { - return (bool) $this->getDenormalizer($data, $type, $format); + return null !== $this->getDenormalizer($data, $type, $format); } /**