Skip to content

Commit ec6c764

Browse files
freekmurzeclaude
andauthored
Add Laravel 13 support (#73)
* Add Laravel 13 support, drop Laravel 10/11 - Update illuminate/contracts to ^12.0|^13.0 - Update orchestra/testbench to ^10.0|^11.0 - Update pestphp/pest to ^3.0|^4.0 - Update pestphp/pest-plugin-laravel to ^3.0|^4.0 - Update phpunit/phpunit to ^11.0|^12.0 - Update nunomaduro/collision to ^8.0 - Update phpstan packages to allow v2 * Fix styling * Update CI matrix for Laravel 12/13 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * Exclude PHP 8.2 from Laravel 13 matrix --------- Co-authored-by: freekmurze <483853+freekmurze@users.noreply.github.com> Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent d818cba commit ec6c764

File tree

3 files changed

+17
-14
lines changed

3 files changed

+17
-14
lines changed

.github/workflows/run-tests.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,16 @@ jobs:
1010
matrix:
1111
os: [ubuntu-latest]
1212
php: [8.4, 8.3, 8.2]
13-
laravel: [12.*, 11.*, 10.*]
13+
laravel: [13.*, 12.*]
1414
stability: [prefer-stable]
1515
include:
16+
- laravel: 13.*
17+
testbench: ^11.0
1618
- laravel: 12.*
1719
testbench: ^10.0
18-
- laravel: 11.*
19-
testbench: ^9.0
20-
- laravel: 10.*
21-
testbench: ^8.0
20+
exclude:
21+
- php: 8.2
22+
laravel: 13.*
2223

2324
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }}
2425

composer.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,17 @@
2323
"require": {
2424
"php": "^8.2",
2525
"spatie/laravel-package-tools": "^1.9.2",
26-
"illuminate/contracts": "^10.0|^11.0|^12.0"
26+
"illuminate/contracts": "^12.0|^13.0"
2727
},
2828
"require-dev": {
29-
"nunomaduro/collision": "^6.0|^7.0|^8.0",
30-
"orchestra/testbench": "^8.0|^9.0|^10.0",
31-
"pestphp/pest": "^2.0|^3.0",
32-
"pestphp/pest-plugin-laravel": "^2.0|^3.0",
29+
"nunomaduro/collision": "^8.0",
30+
"orchestra/testbench": "^10.0|^11.0",
31+
"pestphp/pest": "^3.0|^4.0",
32+
"pestphp/pest-plugin-laravel": "^3.0|^4.0",
3333
"phpstan/extension-installer": "^1.1",
34-
"phpstan/phpstan-deprecation-rules": "^1.0",
35-
"phpstan/phpstan-phpunit": "^1.0",
36-
"phpunit/phpunit": "^10.5|^11.0",
34+
"phpstan/phpstan-deprecation-rules": "^1.0|^2.0",
35+
"phpstan/phpstan-phpunit": "^1.0|^2.0",
36+
"phpunit/phpunit": "^11.0|^12.0",
3737
"spatie/laravel-ray": "^1.26"
3838
},
3939
"autoload": {

src/SlackAlert.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ public function onQueue(string $queue): self
4242
public function sync(bool $sync = true): self
4343
{
4444
$this->sync = $sync;
45+
4546
return $this;
4647
}
4748

@@ -83,7 +84,7 @@ protected function dispatchJob(array $extraProperties): void
8384
$extraProperties,
8485
);
8586

86-
if (!Config::isEnabled() || empty($allProperties['webhookUrl'])) {
87+
if (! Config::isEnabled() || empty($allProperties['webhookUrl'])) {
8788
return;
8889
}
8990

@@ -94,6 +95,7 @@ protected function dispatchJob(array $extraProperties): void
9495
dispatch_sync(
9596
$job->onQueue($this->queue())
9697
);
98+
9799
return;
98100
}
99101

0 commit comments

Comments
 (0)