From bb4baee25c8b17030ccebf11914fc80806eb329b Mon Sep 17 00:00:00 2001 From: xanido Date: Tue, 28 May 2013 15:09:10 +1100 Subject: [PATCH] Fix discriminator map search --- src/JMS/Serializer/Metadata/ClassMetadata.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/JMS/Serializer/Metadata/ClassMetadata.php b/src/JMS/Serializer/Metadata/ClassMetadata.php index 170e97712..4da416514 100644 --- a/src/JMS/Serializer/Metadata/ClassMetadata.php +++ b/src/JMS/Serializer/Metadata/ClassMetadata.php @@ -157,7 +157,7 @@ public function merge(MergeableInterface $object) } if ($this->discriminatorMap && ! $this->reflection->isAbstract()) { - if (false == $typeValue = array_search($this->name, $this->discriminatorMap, true)) { + if (false === $typeValue = array_search($this->name, $this->discriminatorMap, true)) { throw new \LogicException(sprintf( 'The sub-class "%s" is not listed in the discriminator of the base class "%s".', $this->name,