From 0a58934a249fdb7d518d42ecdaafb5e29a480a1b Mon Sep 17 00:00:00 2001 From: Evan Shaw Date: Mon, 20 Jun 2022 16:05:41 +1200 Subject: [PATCH] Fix 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 b33bd6dd6..f0d9dbed4 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($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]);