Skip to content

Commit c677cde

Browse files
Merge pull request #6 from devNoiseConsulting/laravel-11-compatibility
Laravel 11 compatibility
2 parents 71deb33 + 3470141 commit c677cde

File tree

7 files changed

+208
-204
lines changed

7 files changed

+208
-204
lines changed

.github/workflows/tests.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,13 @@ jobs:
1313
strategy:
1414
fail-fast: true
1515
matrix:
16-
php: [8.0, 8.1, 8.2]
17-
laravel: [^9, ^10]
18-
scout: [^9, ^10]
16+
php: [8.1, 8.2, 8.3, 8.4]
17+
laravel: [^10, ^11]
18+
scout: [^10]
1919
exclude:
20-
- php: 8.0
20+
- php: 8.1
21+
laravel: ^11
22+
- php: 8.4
2123
laravel: ^10
2224

2325
name: Test PHP ${{ matrix.php }} - Laravel ${{ matrix.laravel }} - Scout ${{ matrix.scout }}

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
/vendor
22
.phpunit.result.cache
3-
composer.lock
3+
composer.lock
4+
.DS_Store

composer.json

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -28,19 +28,19 @@
2828
}
2929
],
3030
"require": {
31-
"php": "^8.0|^8.1|^8.2",
32-
"illuminate/contracts": "^9|^10",
33-
"illuminate/database": "^9|^10",
34-
"illuminate/support": "^9|^10",
35-
"laravel/scout": "^9|^10"
31+
"php": "^8.1|^8.2|^8.3|^8.4",
32+
"illuminate/contracts": "^10|^11",
33+
"illuminate/database": "^10|^11",
34+
"illuminate/support": "^10|^11",
35+
"laravel/scout": "^10|^11"
3636
},
3737
"require-dev": {
38-
"laravel/pint": "^1.10",
39-
"mockery/mockery": "^1.5",
40-
"nunomaduro/larastan": "^2.6",
41-
"orchestra/testbench": "^8.5",
38+
"laravel/pint": "^1.18",
39+
"mockery/mockery": "^1.6",
40+
"nunomaduro/larastan": "^2.9",
41+
"orchestra/testbench": "^8.28",
4242
"phpunit/phpunit": "^9.6",
43-
"tightenco/duster": "^2.0"
43+
"tightenco/duster": "^2.7"
4444
},
4545
"autoload": {
4646
"psr-4": {
@@ -62,4 +62,4 @@
6262
]
6363
}
6464
}
65-
}
65+
}

phpstan-baseline.neon

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,21 @@
11
parameters:
22
ignoreErrors:
33
-
4-
message: "#^Call to an undefined method Illuminate\\\\Database\\\\Eloquent\\\\Model\\:\\:getDeletedAtColumn\\(\\)\\.$#"
5-
count: 1
4+
message: "#^Call to an undefined method Illuminate\\\\Database\\\\Eloquent\\\\Model\\:\\:searchableAs\\(\\)\\.$#"
5+
count: 2
66
path: src/PostgresEngine.php
77

88
-
9-
message: "#^Call to an undefined method Illuminate\\\\Database\\\\Eloquent\\\\Model\\:\\:searchableAs\\(\\)\\.$#"
10-
count: 4
9+
message: "#^Call to an undefined method Illuminate\\\\Database\\\\Eloquent\\\\Model\\:\\:toSearchableArray\\(\\)\\.$#"
10+
count: 1
11+
path: src/PostgresEngine.php
12+
-
13+
message: "#^Call to an undefined method TModel of Illuminate\\\\Database\\\\Eloquent\\\\Model\\:\\:searchableAs\\(\\)\\.$#"
14+
count: 2
1115
path: src/PostgresEngine.php
1216

1317
-
14-
message: "#^Call to an undefined method Illuminate\\\\Database\\\\Eloquent\\\\Model\\:\\:toSearchableArray\\(\\)\\.$#"
18+
message: "#^Call to an undefined method TModel of Illuminate\\\\Database\\\\Eloquent\\\\Model\\:\\:getDeletedAtColumn\\(\\)\\.$#"
1519
count: 1
1620
path: src/PostgresEngine.php
1721

phpstan.neon

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ parameters:
77
paths:
88
- src/
99

10-
checkGenericClassInNonGenericObjectType: false
11-
1210
# Level 9 is the highest level
1311
level: 9
1412

0 commit comments

Comments
 (0)