From 0e0a29848ade6b432e8728c3c1059dda9e6f70b9 Mon Sep 17 00:00:00 2001 From: Maicon Strey Date: Fri, 12 Apr 2024 14:54:49 -0300 Subject: [PATCH] #413 requestTokenExchange fixed to support PHP8.x Changed parameter #2 of http_build_query to empty string --- src/OpenIDConnectClient.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/OpenIDConnectClient.php b/src/OpenIDConnectClient.php index 6aa80b17..ecd69751 100644 --- a/src/OpenIDConnectClient.php +++ b/src/OpenIDConnectClient.php @@ -972,7 +972,7 @@ public function requestTokenExchange(string $subjectToken, string $subjectTokenT } // Convert token params to string format - $post_params = http_build_query($post_data, null, '&', $this->encType); + $post_params = http_build_query($post_data, '', '&', $this->encType); return json_decode($this->fetchURL($token_endpoint, $post_params, $headers), false); }