From 85663bdd5ebae3d6e6b2327a47b26f7f652f8bab Mon Sep 17 00:00:00 2001 From: Evan Shaw Date: Tue, 21 Jun 2022 11:50:36 +1200 Subject: [PATCH] Actually fix the PHP 8.1 deprecation warning --- src/League/OAuth2/Server/Grant/AuthCode.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/League/OAuth2/Server/Grant/AuthCode.php b/src/League/OAuth2/Server/Grant/AuthCode.php index f0d9dbed4..a0981c715 100644 --- a/src/League/OAuth2/Server/Grant/AuthCode.php +++ b/src/League/OAuth2/Server/Grant/AuthCode.php @@ -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]);