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

Commit

Permalink
zendframework/zendframework#6227 - explode strategy should correctly …
Browse files Browse the repository at this point in the history
…hydrate integer/double values
  • Loading branch information
Ocramius committed Jan 3, 2015
1 parent 9efd581 commit 0aa1c8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Hydrator/Strategy/ExplodeStrategy.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public function hydrate($value)
return array();
}

if (!is_string($value)) {
if (!(is_string($value) || is_numeric($value))) {
throw new Exception\InvalidArgumentException(sprintf(
'%s expects argument 1 to be string, %s provided instead',
__METHOD__,
Expand Down

0 comments on commit 0aa1c8b

Please sign in to comment.