Skip to content

Commit

Permalink
Allow league/oauth2-server 9.x
Browse files Browse the repository at this point in the history
  • Loading branch information
stof committed Aug 26, 2024
1 parent 269c4dc commit af447e2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
5 changes: 3 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
2 changes: 1 addition & 1 deletion src/IdTokenResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 [];
Expand Down

0 comments on commit af447e2

Please sign in to comment.