Skip to content

Commit

Permalink
Merge pull request #658 from schmittjoh/php-7.0.11.bcbreak
Browse files Browse the repository at this point in the history
Fixed PHP 7.0.11 BC break (or bugfix)
  • Loading branch information
goetas committed Oct 28, 2016
2 parents 5ebae63 + f30339a commit 0e59e10
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/JMS/Serializer/XmlDeserializationVisitor.php
Expand Up @@ -150,7 +150,8 @@ public function visitArray($data, array $type, Context $context)
$namespace = isset($classMetadata->xmlNamespaces[''])?$classMetadata->xmlNamespaces['']:$namespace;
}

if ( ! isset($data->$entryName) ) {
$hasNode = null !== $namespace ? isset($data->children($namespace)->$entryName) : isset($data->$entryName);
if (false === $hasNode) {
if (null === $this->result) {
return $this->result = array();
}
Expand Down

0 comments on commit 0e59e10

Please sign in to comment.