Remove useless is_object condition
This commit is contained in:
parent
31aef7ba79
commit
f6fd5e47ed
@ -185,10 +185,6 @@ class Serializer implements SerializerInterface, NormalizerInterface, Denormaliz
|
|||||||
*/
|
*/
|
||||||
private function getNormalizer($data, $format)
|
private function getNormalizer($data, $format)
|
||||||
{
|
{
|
||||||
if ($isObject = is_object($data)) {
|
|
||||||
$class = get_class($data);
|
|
||||||
}
|
|
||||||
|
|
||||||
foreach ($this->normalizers as $normalizer) {
|
foreach ($this->normalizers as $normalizer) {
|
||||||
if ($normalizer instanceof NormalizerInterface && $normalizer->supportsNormalization($data, $format)) {
|
if ($normalizer instanceof NormalizerInterface && $normalizer->supportsNormalization($data, $format)) {
|
||||||
return $normalizer;
|
return $normalizer;
|
||||||
|
Reference in New Issue
Block a user