Explorar o código

Merge pull request #97 from xanido/master

Fix discriminator map search in ClassMetadata
Johannes %!s(int64=12) %!d(string=hai) anos
pai
achega
fbf0968b59
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/JMS/Serializer/Metadata/ClassMetadata.php

+ 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,