Skip to content

Commit

Permalink
remove explicit laravel version dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
bezhanSalleh committed Mar 28, 2024
1 parent 7824166 commit 25ca6b9
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 13 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,17 @@ jobs:
strategy:
fail-fast: true
matrix:
os: [ubuntu-latest, windows-latest]
php: [8.1, 8.2]
laravel: [10.*]
stability: [prefer-lowest, prefer-stable]
php: [8.3, 8.2, 8.1]
laravel: [11.*, 10.*]
dependency-version: [prefer-stable]
include:
- laravel: 11.*
testbench: 9.*
- laravel: 10.*
testbench: 8.*
exclude:
- laravel: 11.*
php: 8.1

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

Expand Down
13 changes: 6 additions & 7 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,16 @@
}
],
"require": {
"php": "^8.1|^8.2",
"php": "^8.1|^8.2|^8.3",
"filament/filament": "^3.0",
"spatie/laravel-package-tools": "^1.9",
"illuminate/contracts": "^9.0|^10.0"
"spatie/laravel-package-tools": "^1.9"
},
"require-dev": {
"laravel/pint": "^1.0",
"nunomaduro/collision": "^6.0|^7.0",
"orchestra/testbench": "^7.0|^8.0",
"pestphp/pest": "^1.21",
"pestphp/pest-plugin-laravel": "^1.1",
"nunomaduro/collision": "^6.0|^7.0|8.0",
"orchestra/testbench": "^7.0|^8.0|^9.0",
"pestphp/pest": "^2.34",
"pestphp/pest-plugin-laravel": "^2.3",
"spatie/laravel-ray": "^1.26"
},
"autoload": {
Expand Down
4 changes: 2 additions & 2 deletions src/LanguageSwitch.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,14 +79,14 @@ public function circular(bool $condition = true): static
return $this;
}

public function displayLocale(?string $locale = null): static
public function displayLocale(string $locale = null): static
{
$this->displayLocale = $locale ?? app()->getLocale();

return $this;
}

public function outsidePanelRoutes(array | Closure | null $routes = null): static
public function outsidePanelRoutes(array | Closure $routes = null): static
{
$this->outsidePanelRoutes = $routes ?? [
'auth.login',
Expand Down

0 comments on commit 25ca6b9

Please sign in to comment.