Skip to content

Commit

Permalink
Update Query.php
Browse files Browse the repository at this point in the history
  • Loading branch information
GrahamCampbell authored Jul 18, 2024
1 parent a2bf821 commit 960a165
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Query.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@ public static function build(array $params, $encoding = PHP_QUERY_RFC3986, bool
}

$castBool = $treatBooleansAsInts
? function ($v) { return (int) $v; }
: function ($v) { return $v ? 'true' : 'false'; };
? 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 960a165

Please sign in to comment.