From a31782109fb320057916712bf93e38e3740303aa Mon Sep 17 00:00:00 2001 From: Yanick Witschi Date: Thu, 18 Feb 2021 15:46:42 +0100 Subject: [PATCH] CS --- src/Serializer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Serializer.php b/src/Serializer.php index 96a2240..6b92538 100644 --- a/src/Serializer.php +++ b/src/Serializer.php @@ -42,7 +42,7 @@ public function denormalize($data, $class, $format = null, array $context = []) } if (is_iterable($data)) { - $class = ($class === '') ? 'stdClass' : $class; + $class = ('' === $class) ? 'stdClass' : $class; return parent::denormalize($data, $class.'[]', $format, $context); }