Skip to content

Commit

Permalink
Merge pull request #5 from vend/php-8.1-2
Browse files Browse the repository at this point in the history
Actually fix the PHP 8.1 deprecation warning
  • Loading branch information
edsrzf authored Jun 21, 2022
2 parents cdfa35f + 85663bd commit 34c838e
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((string)$this->authServer->getScopeDelimeter(), $authParams['scope']);
$scopes = explode($this->authServer->getScopeDelimeter(), (string)$authParams['scope']);

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

0 comments on commit 34c838e

Please sign in to comment.