From 0e0a29848ade6b432e8728c3c1059dda9e6f70b9 Mon Sep 17 00:00:00 2001 From: Maicon Strey Date: Fri, 12 Apr 2024 14:54:49 -0300 Subject: [PATCH 1/2] #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); } From 7a774c0752a430bff71955b29359e2b4f2862473 Mon Sep 17 00:00:00 2001 From: Maicon Strey Date: Fri, 12 Apr 2024 15:00:21 -0300 Subject: [PATCH 2/2] #413 Update CHANGELOG.md --- CHANGELOG.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index d4be9ff7..f3667219 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [Unreleased] + +### Fixed +- Changed parameter #2 of http_build_query to empty string on requestTokenExchange to support PHP8.x + ## [1.0.0] - 2023-12-13 ### Added