Prechádzať zdrojové kódy

Fix discriminator map search

xanido 12 rokov pred
rodič
commit
bb4baee25c

+ 1 - 1
src/JMS/Serializer/Metadata/ClassMetadata.php

@@ -157,7 +157,7 @@ class ClassMetadata extends MergeableClassMetadata
         }
 
         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,