@@ -56,8 +56,8 @@ abstract class OAuth2Provider extends OAuthProvider implements OAuth2Interface{
5656 protected string $ parAuthorizationURL = '' ;
5757
5858 /**
59- * @param array<string, string> $params
60- * @param string[] $scopes
59+ * @param array<string, scalar>|null $params
60+ * @param string[]|null $scopes
6161 */
6262 public function getAuthorizationURL (array |null $ params = null , array |null $ scopes = null ):UriInterface {
6363 $ queryParams = $ this ->getAuthorizationURLRequestParams (($ params ?? []), ($ scopes ?? $ this ::DEFAULT_SCOPES ));
@@ -74,7 +74,7 @@ public function getAuthorizationURL(array|null $params = null, array|null $scope
7474 *
7575 * @see \chillerlan\OAuth\Core\OAuth2Provider::getAuthorizationURL()
7676 *
77- * @param array<string, string > $params
77+ * @param array<string, scalar > $params
7878 * @param string[] $scopes
7979 */
8080 protected function getAuthorizationURLRequestParams (array $ params , array $ scopes ):array {
@@ -236,7 +236,7 @@ protected function getAccessTokenRequestBodyParams(string $code):array{
236236 * @see \chillerlan\OAuth\Core\OAuth2Provider::refreshAccessToken()
237237 * @see \chillerlan\OAuth\Core\OAuth2Provider::getParRequestUri()
238238 *
239- * @param array<string, string > $body
239+ * @param array<string, scalar > $body
240240 */
241241 protected function sendAccessTokenRequest (string $ url , array $ body ):ResponseInterface {
242242
@@ -340,7 +340,7 @@ protected function getClientCredentialsTokenRequestBodyParams(array|null $scopes
340340 *
341341 * @see \chillerlan\OAuth\Core\OAuth2Provider::getClientCredentialsToken()
342342 *
343- * @param array<string, string > $body
343+ * @param array<string, scalar > $body
344344 */
345345 protected function sendClientCredentialsTokenRequest (string $ url , array $ body ):ResponseInterface {
346346
@@ -467,7 +467,7 @@ public function invalidateAccessToken(AccessToken|null $token = null, string|nul
467467 *
468468 * @see \chillerlan\OAuth\Core\OAuth2Provider::invalidateAccessToken()
469469 *
470- * @param array<string, string > $body
470+ * @param array<string, scalar > $body
471471 */
472472 protected function sendTokenInvalidateRequest (string $ url , array $ body ):ResponseInterface {
473473
@@ -505,7 +505,7 @@ protected function getInvalidateAccessTokenBodyParams(AccessToken $token, string
505505 * @see \chillerlan\OAuth\Core\CSRFToken::setState()
506506 * @see \chillerlan\OAuth\Core\OAuth2Provider::getAuthorizationURLRequestParams()
507507 *
508- * @param array<string, string > $params
508+ * @param array<string, scalar > $params
509509 * @throws \chillerlan\OAuth\Providers\ProviderException
510510 */
511511 final public function setState (array $ params ):array {
@@ -562,7 +562,7 @@ final public function checkState(string|null $state = null):void{
562562 * @see \chillerlan\OAuth\Core\PKCE::setCodeChallenge()
563563 * @see \chillerlan\OAuth\Core\OAuth2Provider::getAuthorizationURLRequestParams()
564564 *
565- * @param array<string, string > $params
565+ * @param array<string, scalar > $params
566566 */
567567 final public function setCodeChallenge (array $ params , string $ challengeMethod ):array {
568568
@@ -590,7 +590,7 @@ final public function setCodeChallenge(array $params, string $challengeMethod):a
590590 * @see \chillerlan\OAuth\Core\PKCE::setCodeVerifier()
591591 * @see \chillerlan\OAuth\Core\OAuth2Provider::getAccessTokenRequestBodyParams()
592592 *
593- * @param array<string, string > $params
593+ * @param array<string, scalar > $params
594594 */
595595 final public function setCodeVerifier (array $ params ):array {
596596
@@ -669,7 +669,7 @@ final public function generateChallenge(string $verifier, string $challengeMetho
669669 * @see \chillerlan\OAuth\Core\PAR::getParRequestUri()
670670 * @see \chillerlan\OAuth\Core\OAuth2Provider::getAuthorizationURL()
671671 *
672- * @param array<string, string > $body
672+ * @param array<string, scalar > $body
673673 */
674674 public function getParRequestUri (array $ body ):UriInterface {
675675
@@ -704,7 +704,7 @@ public function getParRequestUri(array $body):UriInterface{
704704 *
705705 * @see \chillerlan\OAuth\Core\OAuth2Provider::getParRequestUri()
706706 *
707- * @param array<string, string > $response
707+ * @param array<string, scalar > $response
708708 *
709709 * @codeCoverageIgnore
710710 */
0 commit comments