Skip to content
This repository has been archived by the owner on Jan 31, 2020. It is now read-only.

Commit

Permalink
fix in Hydrator\ArraySerializable
Browse files Browse the repository at this point in the history
  • Loading branch information
prolic committed May 29, 2012
1 parent 910768e commit 79bbc9f
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/Hydrator/ArraySerializable.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,8 @@ public function hydrate(array $data, $object)
{
if (is_callable(array($object, 'exchangeArray'))) {
$object->exchangeArray($data);
return;
} else if (is_callable(array($object, 'populate'))) {
$object->populate($data);
return;
} else {
throw new Exception\BadMethodCallException(sprintf(
'%s expects the provided object to implement exchangeArray() or populate()',
Expand Down

0 comments on commit 79bbc9f

Please sign in to comment.