diff --git a/.github/workflows/run-test.yml b/.github/workflows/run-test.yml index d872a3a..d7371a1 100644 --- a/.github/workflows/run-test.yml +++ b/.github/workflows/run-test.yml @@ -19,7 +19,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - php-version: ['8.1', '8.2', '8.3'] + php-version: ['8.2', '8.3'] steps: - uses: shivammathur/setup-php@v2 with: diff --git a/composer.json b/composer.json index fc1560b..223312e 100644 --- a/composer.json +++ b/composer.json @@ -12,8 +12,8 @@ } ], "require": { - "php": ">=8.1", - "lcobucci/jwt": "^4.1", + "php": ">=8.2", + "lcobucci/jwt": "^5.3", "symfony/http-client": "6.4.*" }, "require-dev": { diff --git a/src/JwtConfigurationFactory.php b/src/JwtConfigurationFactory.php index ab8d69d..9e3651d 100644 --- a/src/JwtConfigurationFactory.php +++ b/src/JwtConfigurationFactory.php @@ -8,5 +8,5 @@ interface JwtConfigurationFactory { - public function create(): Configuration; + public function create(): ?Configuration; } diff --git a/src/Validation/Constraint/UserInfoEndpoint.php b/src/Validation/Constraint/UserInfoEndpoint.php index d0c334b..1a1a578 100644 --- a/src/Validation/Constraint/UserInfoEndpoint.php +++ b/src/Validation/Constraint/UserInfoEndpoint.php @@ -30,9 +30,7 @@ public function assert(Token $token): void $response->getContent(); } catch (ExceptionInterface $e) { throw new ConstraintViolation( - 'Userinfo cannot be fetch from Identity provider', - $e->getCode(), - $e + 'Userinfo cannot be fetch from Identity provider' ); } }