Skip to content

Commit 356c86c

Browse files
Update dependencies and simplify class constructors (#12)
* Update dependencies and simplify class constructors * Apply fixes from StyleCI * Update stability option to prefer-stable in run-tests.yml * Update PHP and Laravel versions in test workflowmatrix * Update Laravel versions for PHP 8.4, 8.3, and 8.2 * Update illuminate/contracts version constraint to allow ^11.*|^12.*|^13.0 * Update illuminate/contracts version constraintsfor Laravel compatibility * Exclude laravel 13.* with php 8.2 from test jobs --------- Co-authored-by: StyleCI Bot <bot@styleci.io>
1 parent 113d52b commit 356c86c

3 files changed

Lines changed: 22 additions & 11 deletions

File tree

.github/workflows/run-tests.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,21 @@ jobs:
1818
matrix:
1919
os: [ubuntu-latest, windows-latest]
2020
php: [8.4, 8.3, 8.2]
21-
laravel: [11.*]
22-
stability: [prefer-lowest, prefer-stable]
21+
laravel: [11.*, 12.*, 13.*]
22+
stability: [prefer-stable]
23+
exclude:
24+
- laravel: 13.*
25+
php: 8.2
2326
include:
2427
- laravel: 11.*
2528
testbench: 9.*
2629
carbon: ^2.63
30+
- laravel: 12.*
31+
testbench: 10.*
32+
carbon: ^3.0
33+
- laravel: 13.*
34+
testbench: 11.*
35+
carbon: ^3.0
2736

2837
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }}
2938

composer.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,19 +20,19 @@
2020
"require": {
2121
"php": "^8.2",
2222
"spatie/laravel-package-tools": "^1.16",
23-
"illuminate/contracts": "^11.0|^12.0"
23+
"illuminate/contracts": "^11.0|^12.0|^13.0"
2424
},
2525
"require-dev": {
2626
"laravel/pint": "^1.14",
2727
"nunomaduro/collision": "^8.1.1",
28-
"larastan/larastan": "^2.9",
29-
"orchestra/testbench": "^9.0|^10.0",
30-
"pestphp/pest": "^3.0",
31-
"pestphp/pest-plugin-arch": "^3.0",
32-
"pestphp/pest-plugin-laravel": "^2.0||^3.0",
28+
"larastan/larastan": "^2.9|^3.0",
29+
"orchestra/testbench": "^9.0|^10.0|^11.0",
30+
"pestphp/pest": "^3.0|^4.0",
31+
"pestphp/pest-plugin-arch": "^3.0|^4.0|^5.0",
32+
"pestphp/pest-plugin-laravel": "^2.0|^3.0|^4.0|^5.0",
3333
"phpstan/extension-installer": "^1.3",
34-
"phpstan/phpstan-deprecation-rules": "^1.1",
35-
"phpstan/phpstan-phpunit": "^1.3"
34+
"phpstan/phpstan-deprecation-rules": "^1.1|^2.0",
35+
"phpstan/phpstan-phpunit": "^1.3|^2.0"
3636
},
3737
"autoload": {
3838
"psr-4": {

src/FireableAttributes.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@
22

33
namespace BinaryCats\FireableAttributeEvents;
44

5+
use Illuminate\Database\Eloquent\Model;
6+
57
/**
6-
* @mixin \Illuminate\Database\Eloquent\Model
8+
* @mixin Model
79
*/
810
trait FireableAttributes
911
{

0 commit comments

Comments
 (0)