Skip to content

Commit fbf0968

Browse files
committed
Merge pull request schmittjoh#97 from xanido/master
Fix discriminator map search in ClassMetadata
2 parents 40a91c1 + bb4baee commit fbf0968

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/JMS/Serializer/Metadata/ClassMetadata.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ public function merge(MergeableInterface $object)
157157
}
158158

159159
if ($this->discriminatorMap && ! $this->reflection->isAbstract()) {
160-
if (false == $typeValue = array_search($this->name, $this->discriminatorMap, true)) {
160+
if (false === $typeValue = array_search($this->name, $this->discriminatorMap, true)) {
161161
throw new \LogicException(sprintf(
162162
'The sub-class "%s" is not listed in the discriminator of the base class "%s".',
163163
$this->name,

0 commit comments

Comments
 (0)