Skip to content

Commit

Permalink
Merge pull request #4 from vend/php-8.1
Browse files Browse the repository at this point in the history
Fix PHP 8.1 deprecation warning
  • Loading branch information
edsrzf authored Jun 20, 2022
2 parents d8931c5 + 0a58934 commit cdfa35f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/League/OAuth2/Server/Grant/AuthCode.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ public function checkAuthoriseParams($inputParams = array())
}

// Validate scopes
$scopes = explode($this->authServer->getScopeDelimeter(), $authParams['scope']);
$scopes = explode((string)$this->authServer->getScopeDelimeter(), $authParams['scope']);

for ($i = 0; $i < count($scopes); $i++) {
$scopes[$i] = trim($scopes[$i]);
Expand Down

0 comments on commit cdfa35f

Please sign in to comment.