Skip to content

Commit

Permalink
Update Query.php
Browse files Browse the repository at this point in the history
  • Loading branch information
GrahamCampbell committed Jul 18, 2024
1 parent b1624a0 commit 8e202f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Query.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ public static function build(array $params, $encoding = PHP_QUERY_RFC3986, bool
throw new \InvalidArgumentException('Invalid type');
}

$castBool = $treatBooleansAsInts ? static function ($v) { return (int) $v; } : static function ($v) { return $v ? 'true' : 'false'; };
$castBool = $treatBoolsAsInts ? static function ($v) { return (int) $v; } : static function ($v) { return $v ? 'true' : 'false'; };

$qs = '';
foreach ($params as $k => $v) {
Expand Down

0 comments on commit 8e202f9

Please sign in to comment.