Skip to content

Commit

Permalink
Fix bool typecasting of request param values
Browse files Browse the repository at this point in the history
  • Loading branch information
lifeofguenter committed May 8, 2015
1 parent b72660f commit 2be8925
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Api/Serializer/QueryParamBuilder.php
Expand Up @@ -133,4 +133,9 @@ protected function format_timestamp(
) {
$query[$prefix] = TimestampShape::format($value, 'iso8601');
}

protected function format_boolean(Shape $shape, $value, $prefix, array &$query)
{
$query[$prefix] = ($value) ? 'true' : 'false';
}
}

0 comments on commit 2be8925

Please sign in to comment.