Skip to content

Commit

Permalink
Merge pull request #7 from ellipsesynergie/feature/11.0.0-add-laravel…
Browse files Browse the repository at this point in the history
…-11-support

PSY-1534 - add laravel 11 support
  • Loading branch information
flbergeron authored Jan 16, 2025
2 parents 374fe24 + 65f0fba commit 03390af
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ docker-auth: &docker-auth
defaults: &defaults
working_directory: ~/league-oauth2-server
docker:
- image: cimg/php:8.1
- image: cimg/php:8.2
<<: *docker-auth

version: 2.1
Expand Down
8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
"homepage": "http://oauth2.thephpleague.com/",
"license": "MIT",
"require": {
"php": ">=8.0.2",
"symfony/http-foundation": "^6.0",
"php": "^8.2",
"symfony/http-foundation": "^7.0",
"league/event": "~2.1"
},
"require-dev": {
"phpunit/phpunit": "^9.0",
"mockery/mockery": "^1.0"
"phpunit/phpunit": "^10.5",
"mockery/mockery": "^1.6.10"
},
"repositories": [
{
Expand Down
6 changes: 3 additions & 3 deletions tests/unit/ResourceServerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public function testDetermineAccessTokenMissingToken()
);

$request = new \Symfony\Component\HttpFoundation\Request();
$request->headers = new \Symfony\Component\HttpFoundation\ParameterBag([
$request->headers = new \Symfony\Component\HttpFoundation\HeaderBag([
'HTTP_AUTHORIZATION' => 'Bearer',
]);
$server->setRequest($request);
Expand Down Expand Up @@ -160,7 +160,7 @@ public function testIsValid()
);

$request = new \Symfony\Component\HttpFoundation\Request();
$request->headers = new \Symfony\Component\HttpFoundation\ParameterBag([
$request->headers = new \Symfony\Component\HttpFoundation\HeaderBag([
'Authorization' => 'Bearer abcdef',
]);
$server->setRequest($request);
Expand Down Expand Up @@ -215,7 +215,7 @@ public function testIsValidExpiredToken()
);

$request = new \Symfony\Component\HttpFoundation\Request();
$request->headers = new \Symfony\Component\HttpFoundation\ParameterBag([
$request->headers = new \Symfony\Component\HttpFoundation\HeaderBag([
'Authorization' => 'Bearer abcdef',
]);
$server->setRequest($request);
Expand Down

0 comments on commit 03390af

Please sign in to comment.