diff --git a/src/Hydrator/ArraySerializable.php b/src/Hydrator/ArraySerializable.php index d5623522a..da5ed9c61 100644 --- a/src/Hydrator/ArraySerializable.php +++ b/src/Hydrator/ArraySerializable.php @@ -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()',