Skip to content

Commit

Permalink
Merge pull request #217 from wmde/addElement
Browse files Browse the repository at this point in the history
Do not use SnakList::addElement
  • Loading branch information
JeroenDeDauw authored Mar 15, 2017
2 parents 5398886 + 3ca36fb commit 01337b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Deserializers/SnakListDeserializer.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,12 @@ private function getDeserialized( array $serialization ) {
foreach ( $snakArray as $snakSerialization ) {
/** @var Snak $snak */
$snak = $this->snakDeserializer->deserialize( $snakSerialization );
$snakList->addElement( $snak );
$snakList->addSnak( $snak );
}
} else {
/** @var Snak $snak */
$snak = $this->snakDeserializer->deserialize( $snakArray );
$snakList->addElement( $snak );
$snakList->addSnak( $snak );
}
}

Expand Down

0 comments on commit 01337b4

Please sign in to comment.