diff --git a/src/OpenIDConnectClient.php b/src/OpenIDConnectClient.php index 5dfcc4a2..7ab04939 100644 --- a/src/OpenIDConnectClient.php +++ b/src/OpenIDConnectClient.php @@ -647,7 +647,7 @@ protected function generateRandString() { throw new OpenIDConnectClientException('Random token generation failed.'); } catch (Exception $e) { throw new OpenIDConnectClientException('Random token generation failed.'); - }; + } } /** @@ -872,7 +872,7 @@ public function requestTokenExchange($subjectToken, $subjectTokenType, $audience } // Convert token params to string format - $post_params = http_build_query($post_data, null, '&', $this->enc_type); + $post_params = http_build_query($post_data, null, '&', $this->encType); return json_decode($this->fetchURL($token_endpoint, $post_params, $headers)); }