Skip to content

Commit

Permalink
Merge pull request #2 from mike182uk/master
Browse files Browse the repository at this point in the history
Incorrect boolean casting
  • Loading branch information
mdavis1982 committed Dec 12, 2012
2 parents f94fa75 + 3f1c4db commit 38954b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/YDD/Vebra/API.php
Original file line number Diff line number Diff line change
Expand Up @@ -497,7 +497,7 @@ protected static function normalise($xml, $cast = null)
return (float) $xml;
case 'boolean':
case 'bool':
return (boolean) $xml;
return (string) $xml === 'true';
case 'datetime':
return new \DateTime((string) $xml);
default:
Expand Down

0 comments on commit 38954b7

Please sign in to comment.