From af447e202ef1270a04fc0ed9355a6e202da55235 Mon Sep 17 00:00:00 2001 From: Christophe Coevoet Date: Fri, 23 Aug 2024 17:16:18 +0200 Subject: [PATCH] Allow league/oauth2-server 9.x --- README.md | 2 +- composer.json | 5 +++-- src/IdTokenResponse.php | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 81e3a0b..e39675c 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ This implements the OpenID Connect specification on top of The PHP League's [OAu ## Requirements -* Requires PHP version 5.5 or greater. +* Requires PHP version 7.2 or greater. * [league/oauth2-server](https://github.com/thephpleague/oauth2-server) 5.1 or greater. Note: league/oauth2-server version may have a higher PHP requirement. diff --git a/composer.json b/composer.json index 2c9e06c..63f4dc6 100644 --- a/composer.json +++ b/composer.json @@ -9,12 +9,13 @@ } ], "require": { - "league/oauth2-server": "^5.1|^6.0|^7.0|^8.0", + "php": ">=7.2", + "league/oauth2-server": "^5.1|^6.0|^7.0|^8.0|^9.0", "lcobucci/jwt": "4.1.5|^4.2|^4.3|^5.0" }, "require-dev": { "phpunit/phpunit": "^5.0|^9.5", - "laminas/laminas-diactoros": "^1.3.2" + "laminas/laminas-diactoros": "^1.3.2 || ^3.3" }, "autoload": { "psr-4": { diff --git a/src/IdTokenResponse.php b/src/IdTokenResponse.php index 29e1d18..a4d1e56 100644 --- a/src/IdTokenResponse.php +++ b/src/IdTokenResponse.php @@ -62,7 +62,7 @@ protected function getBuilder(AccessTokenEntityInterface $accessToken, UserEntit * @param AccessTokenEntityInterface $accessToken * @return array */ - protected function getExtraParams(AccessTokenEntityInterface $accessToken) + protected function getExtraParams(AccessTokenEntityInterface $accessToken): array { if (false === $this->isOpenIDRequest($accessToken->getScopes())) { return [];