Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 24 additions & 8 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,13 @@ jobs:
- "8.2"
- "8.3"
- "8.4"
- "8.5"
laravel-version:
- "^9"
- "^10"
- "^11"
- "^12"
- "^13"
composer:
- name: lowest
arg: "--prefer-lowest --prefer-stable"
Expand All @@ -49,6 +51,12 @@ jobs:
laravel-version: "^12"
- php-version: "8.1"
laravel-version: "^12"
- php-version: "8.0"
laravel-version: "^13"
- php-version: "8.1"
laravel-version: "^13"
- php-version: "8.2"
laravel-version: "^13"

steps:
- uses: actions/checkout@v4
Expand All @@ -74,7 +82,7 @@ jobs:

- run: >
composer require
illuminate/contracts:${{ matrix.laravel-version }}
laravel/framework:${{ matrix.laravel-version }}
--no-interaction
--prefer-dist
--no-progress
Expand All @@ -96,11 +104,13 @@ jobs:
- "8.2"
- "8.3"
- "8.4"
- "8.5"
laravel-version:
- "^9"
- "^10"
- "^11"
- "^12"
- "^13"
os:
- ubuntu-latest
composer:
Expand All @@ -119,6 +129,12 @@ jobs:
laravel-version: "^12"
- php-version: "8.1"
laravel-version: "^12"
- php-version: "8.0"
laravel-version: "^13"
- php-version: "8.1"
laravel-version: "^13"
- php-version: "8.2"
laravel-version: "^13"

services:
mysql:
Expand Down Expand Up @@ -160,7 +176,7 @@ jobs:

- run: >
composer require
illuminate/contracts:${{ matrix.laravel-version }}
laravel/framework:${{ matrix.laravel-version }}
--no-interaction
--prefer-dist
--no-progress
Expand All @@ -174,8 +190,8 @@ jobs:

strategy:
matrix:
php-version: ["8.4"]
laravel-version: ["^12"]
php-version: ["8.5"]
laravel-version: ["^13"]

services:
mysql:
Expand Down Expand Up @@ -210,7 +226,7 @@ jobs:

- run: composer remove --dev phpbench/phpbench rector/rector --no-update

- run: composer require illuminate/contracts:${{ matrix.laravel-version }} --no-interaction --prefer-dist --no-progress
- run: composer require laravel/framework:${{ matrix.laravel-version }} --no-interaction --prefer-dist --no-progress

- run: vendor/bin/phpunit --coverage-clover=coverage.xml

Expand All @@ -222,8 +238,8 @@ jobs:

strategy:
matrix:
php-version: ["8.4"]
laravel-version: ["^12"]
php-version: ["8.5"]
laravel-version: ["^13"]

steps:
- uses: actions/checkout@v4
Expand All @@ -240,6 +256,6 @@ jobs:
path: ~/.composer/cache
key: php-${{ matrix.php-version }}-composer-${{ matrix.laravel-version }}

- run: composer require illuminate/contracts:${{ matrix.laravel-version }} --no-interaction --prefer-dist --no-progress
- run: composer require laravel/framework:${{ matrix.laravel-version }} --no-interaction --prefer-dist --no-progress

- run: vendor/bin/phpbench run --progress=none --report=aggregate
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ You can find and compare releases at the [GitHub release page](https://github.co

## Unreleased

### Added

- Support Laravel 13

## v6.65.0

### Added
Expand Down
22 changes: 11 additions & 11 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,15 @@
"php": "^8",
"ext-json": "*",
"haydenpierce/class-finder": "^0.4 || ^0.5",
"illuminate/auth": "^9 || ^10 || ^11 || ^12",
"illuminate/bus": "^9 || ^10 || ^11 || ^12",
"illuminate/contracts": "^9 || ^10 || ^11 || ^12",
"illuminate/http": "^9 || ^10 || ^11 || ^12",
"illuminate/pagination": "^9 || ^10 || ^11 || ^12",
"illuminate/queue": "^9 || ^10 || ^11 || ^12",
"illuminate/routing": "^9 || ^10 || ^11 || ^12",
"illuminate/support": "^9 || ^10 || ^11 || ^12",
"illuminate/validation": "^9 || ^10 || ^11 || ^12",
"illuminate/auth": "^9 || ^10 || ^11 || ^12 || ^13",
"illuminate/bus": "^9 || ^10 || ^11 || ^12 || ^13",
"illuminate/contracts": "^9 || ^10 || ^11 || ^12 || ^13",
"illuminate/http": "^9 || ^10 || ^11 || ^12 || ^13",
"illuminate/pagination": "^9 || ^10 || ^11 || ^12 || ^13",
"illuminate/queue": "^9 || ^10 || ^11 || ^12 || ^13",
"illuminate/routing": "^9 || ^10 || ^11 || ^12 || ^13",
"illuminate/support": "^9 || ^10 || ^11 || ^12 || ^13",
"illuminate/validation": "^9 || ^10 || ^11 || ^12 || ^13",
"laragraph/utils": "^1.5 || ^2",
"thecodingmachine/safe": "^1 || ^2 || ^3",
"webonyx/graphql-php": "^15"
Expand All @@ -49,7 +49,7 @@
"fakerphp/faker": "^1.21",
"google/protobuf": "^3.21 || ^4.33.6",
"larastan/larastan": "^2.9.14 || ^3.0.4",
"laravel/framework": "^9 || ^10 || ^11 || ^12",
"laravel/framework": "^9 || ^10 || ^11 || ^12 || ^13",
"laravel/legacy-factories": "^1.1.1",
"laravel/pennant": "^1",
"laravel/scout": "^8 || ^9 || ^10",
Expand All @@ -58,7 +58,7 @@
"mll-lab/php-cs-fixer-config": "^5",
"mockery/mockery": "^1.5",
"nesbot/carbon": "^2.62.1 || ^3.8.4",
"orchestra/testbench": "^7.50 || ^8.32 || ^9.10 || ^10.1",
"orchestra/testbench": "^7.50 || ^8.32 || ^9.10 || ^10.1 || ^11",
"phpbench/phpbench": "^1.2.6",
"phpstan/extension-installer": "^1",
"phpstan/phpstan": "^1.12.18 || ^2",
Expand Down
2 changes: 1 addition & 1 deletion src/Subscriptions/SubscriptionServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public function boot(EventsDispatcher $dispatcher, ConfigRepository $configRepos
$this->app->bind(SubscriptionIterator::class, AuthenticatingSyncIterator::class);

$this->app->make(AuthManager::class)
->extend(SubscriptionGuard::GUARD_NAME, static fn (): SubscriptionGuard => new SubscriptionGuard());
->extend(SubscriptionGuard::GUARD_NAME, fn (): SubscriptionGuard => new SubscriptionGuard());
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public function testSetsAndResetsGuardContextAfterEachIteration(): void

$authManager = $this->app->make(AuthManager::class);

$authManager->extend(SubscriptionGuard::GUARD_NAME, static fn (): SubscriptionGuard => $guard);
$authManager->extend(SubscriptionGuard::GUARD_NAME, fn (): SubscriptionGuard => $guard);

$processedItems = [];
$authenticatedUsers = [];
Expand Down
Loading