Skip to content

Commit

Permalink
assignment on separate line
Browse files Browse the repository at this point in the history
  • Loading branch information
goetas committed Sep 20, 2019
1 parent ff89778 commit 49dbcf2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Metadata/Driver/XmlDriver.php
Expand Up @@ -158,8 +158,8 @@ protected function loadMetadataFromFile(\ReflectionClass $class, string $path):
if ($property->class !== $name || (isset($property->info) && $property->info['class'] !== $name)) {
continue;
}

$propertiesMetadata[] = new PropertyMetadata($name, $pName = $property->getName());
$pName = $property->getName();
$propertiesMetadata[] = new PropertyMetadata($name, $pName);
$pElems = $elem->xpath("./property[@name = '" . $pName . "']");

$propertiesNodes[] = $pElems ? reset($pElems) : null;
Expand Down

0 comments on commit 49dbcf2

Please sign in to comment.