@@ -56,8 +56,8 @@ abstract class OAuth2Provider extends OAuthProvider implements OAuth2Interface{
56
56
protected string $ parAuthorizationURL = '' ;
57
57
58
58
/**
59
- * @param array<string, string> $params
60
- * @param string[] $scopes
59
+ * @param array<string, scalar>|null $params
60
+ * @param string[]|null $scopes
61
61
*/
62
62
public function getAuthorizationURL (array |null $ params = null , array |null $ scopes = null ):UriInterface {
63
63
$ queryParams = $ this ->getAuthorizationURLRequestParams (($ params ?? []), ($ scopes ?? $ this ::DEFAULT_SCOPES ));
@@ -74,7 +74,7 @@ public function getAuthorizationURL(array|null $params = null, array|null $scope
74
74
*
75
75
* @see \chillerlan\OAuth\Core\OAuth2Provider::getAuthorizationURL()
76
76
*
77
- * @param array<string, string > $params
77
+ * @param array<string, scalar > $params
78
78
* @param string[] $scopes
79
79
*/
80
80
protected function getAuthorizationURLRequestParams (array $ params , array $ scopes ):array {
@@ -236,7 +236,7 @@ protected function getAccessTokenRequestBodyParams(string $code):array{
236
236
* @see \chillerlan\OAuth\Core\OAuth2Provider::refreshAccessToken()
237
237
* @see \chillerlan\OAuth\Core\OAuth2Provider::getParRequestUri()
238
238
*
239
- * @param array<string, string > $body
239
+ * @param array<string, scalar > $body
240
240
*/
241
241
protected function sendAccessTokenRequest (string $ url , array $ body ):ResponseInterface {
242
242
@@ -340,7 +340,7 @@ protected function getClientCredentialsTokenRequestBodyParams(array|null $scopes
340
340
*
341
341
* @see \chillerlan\OAuth\Core\OAuth2Provider::getClientCredentialsToken()
342
342
*
343
- * @param array<string, string > $body
343
+ * @param array<string, scalar > $body
344
344
*/
345
345
protected function sendClientCredentialsTokenRequest (string $ url , array $ body ):ResponseInterface {
346
346
@@ -467,7 +467,7 @@ public function invalidateAccessToken(AccessToken|null $token = null, string|nul
467
467
*
468
468
* @see \chillerlan\OAuth\Core\OAuth2Provider::invalidateAccessToken()
469
469
*
470
- * @param array<string, string > $body
470
+ * @param array<string, scalar > $body
471
471
*/
472
472
protected function sendTokenInvalidateRequest (string $ url , array $ body ):ResponseInterface {
473
473
@@ -505,7 +505,7 @@ protected function getInvalidateAccessTokenBodyParams(AccessToken $token, string
505
505
* @see \chillerlan\OAuth\Core\CSRFToken::setState()
506
506
* @see \chillerlan\OAuth\Core\OAuth2Provider::getAuthorizationURLRequestParams()
507
507
*
508
- * @param array<string, string > $params
508
+ * @param array<string, scalar > $params
509
509
* @throws \chillerlan\OAuth\Providers\ProviderException
510
510
*/
511
511
final public function setState (array $ params ):array {
@@ -562,7 +562,7 @@ final public function checkState(string|null $state = null):void{
562
562
* @see \chillerlan\OAuth\Core\PKCE::setCodeChallenge()
563
563
* @see \chillerlan\OAuth\Core\OAuth2Provider::getAuthorizationURLRequestParams()
564
564
*
565
- * @param array<string, string > $params
565
+ * @param array<string, scalar > $params
566
566
*/
567
567
final public function setCodeChallenge (array $ params , string $ challengeMethod ):array {
568
568
@@ -590,7 +590,7 @@ final public function setCodeChallenge(array $params, string $challengeMethod):a
590
590
* @see \chillerlan\OAuth\Core\PKCE::setCodeVerifier()
591
591
* @see \chillerlan\OAuth\Core\OAuth2Provider::getAccessTokenRequestBodyParams()
592
592
*
593
- * @param array<string, string > $params
593
+ * @param array<string, scalar > $params
594
594
*/
595
595
final public function setCodeVerifier (array $ params ):array {
596
596
@@ -669,7 +669,7 @@ final public function generateChallenge(string $verifier, string $challengeMetho
669
669
* @see \chillerlan\OAuth\Core\PAR::getParRequestUri()
670
670
* @see \chillerlan\OAuth\Core\OAuth2Provider::getAuthorizationURL()
671
671
*
672
- * @param array<string, string > $body
672
+ * @param array<string, scalar > $body
673
673
*/
674
674
public function getParRequestUri (array $ body ):UriInterface {
675
675
@@ -704,7 +704,7 @@ public function getParRequestUri(array $body):UriInterface{
704
704
*
705
705
* @see \chillerlan\OAuth\Core\OAuth2Provider::getParRequestUri()
706
706
*
707
- * @param array<string, string > $response
707
+ * @param array<string, scalar > $response
708
708
*
709
709
* @codeCoverageIgnore
710
710
*/
0 commit comments