Skip to content

Commit

Permalink
Merge pull request #6 from devNoiseConsulting/laravel-11-compatibility
Browse files Browse the repository at this point in the history
Laravel 11 compatibility
  • Loading branch information
devNoiseConsulting authored Nov 30, 2024
2 parents 71deb33 + 3470141 commit c677cde
Show file tree
Hide file tree
Showing 7 changed files with 208 additions and 204 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,13 @@ jobs:
strategy:
fail-fast: true
matrix:
php: [8.0, 8.1, 8.2]
laravel: [^9, ^10]
scout: [^9, ^10]
php: [8.1, 8.2, 8.3, 8.4]
laravel: [^10, ^11]
scout: [^10]
exclude:
- php: 8.0
- php: 8.1
laravel: ^11
- php: 8.4
laravel: ^10

name: Test PHP ${{ matrix.php }} - Laravel ${{ matrix.laravel }} - Scout ${{ matrix.scout }}
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/vendor
.phpunit.result.cache
composer.lock
composer.lock
.DS_Store
22 changes: 11 additions & 11 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,19 +28,19 @@
}
],
"require": {
"php": "^8.0|^8.1|^8.2",
"illuminate/contracts": "^9|^10",
"illuminate/database": "^9|^10",
"illuminate/support": "^9|^10",
"laravel/scout": "^9|^10"
"php": "^8.1|^8.2|^8.3|^8.4",
"illuminate/contracts": "^10|^11",
"illuminate/database": "^10|^11",
"illuminate/support": "^10|^11",
"laravel/scout": "^10|^11"
},
"require-dev": {
"laravel/pint": "^1.10",
"mockery/mockery": "^1.5",
"nunomaduro/larastan": "^2.6",
"orchestra/testbench": "^8.5",
"laravel/pint": "^1.18",
"mockery/mockery": "^1.6",
"nunomaduro/larastan": "^2.9",
"orchestra/testbench": "^8.28",
"phpunit/phpunit": "^9.6",
"tightenco/duster": "^2.0"
"tightenco/duster": "^2.7"
},
"autoload": {
"psr-4": {
Expand All @@ -62,4 +62,4 @@
]
}
}
}
}
14 changes: 9 additions & 5 deletions phpstan-baseline.neon
Original file line number Diff line number Diff line change
@@ -1,17 +1,21 @@
parameters:
ignoreErrors:
-
message: "#^Call to an undefined method Illuminate\\\\Database\\\\Eloquent\\\\Model\\:\\:getDeletedAtColumn\\(\\)\\.$#"
count: 1
message: "#^Call to an undefined method Illuminate\\\\Database\\\\Eloquent\\\\Model\\:\\:searchableAs\\(\\)\\.$#"
count: 2
path: src/PostgresEngine.php

-
message: "#^Call to an undefined method Illuminate\\\\Database\\\\Eloquent\\\\Model\\:\\:searchableAs\\(\\)\\.$#"
count: 4
message: "#^Call to an undefined method Illuminate\\\\Database\\\\Eloquent\\\\Model\\:\\:toSearchableArray\\(\\)\\.$#"
count: 1
path: src/PostgresEngine.php
-
message: "#^Call to an undefined method TModel of Illuminate\\\\Database\\\\Eloquent\\\\Model\\:\\:searchableAs\\(\\)\\.$#"
count: 2
path: src/PostgresEngine.php

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

2 changes: 0 additions & 2 deletions phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ parameters:
paths:
- src/

checkGenericClassInNonGenericObjectType: false

# Level 9 is the highest level
level: 9

Loading

0 comments on commit c677cde

Please sign in to comment.