From 8e202f93f1af58cc6e3f181682ce9f2758536382 Mon Sep 17 00:00:00 2001 From: Graham Campbell Date: Thu, 18 Jul 2024 11:18:16 +0100 Subject: [PATCH] Update Query.php --- src/Query.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Query.php b/src/Query.php index 3debb9b6..ccf867a0 100644 --- a/src/Query.php +++ b/src/Query.php @@ -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) {