Skip to content

Commit

Permalink
Merge pull request #97 from xanido/master
Browse files Browse the repository at this point in the history
Fix discriminator map search in ClassMetadata
  • Loading branch information
schmittjoh committed May 28, 2013
2 parents 40a91c1 + bb4baee commit fbf0968
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/JMS/Serializer/Metadata/ClassMetadata.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit fbf0968

Please # to comment.