Skip to content

Commit b3ff7b4

Browse files
authored
Merge pull request #14 from oddvalue/chore/l11
Support Laravel 11
2 parents d2ad992 + 6b53cc9 commit b3ff7b4

4 files changed

Lines changed: 16 additions & 14 deletions

File tree

.github/workflows/phpstan.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
- name: Setup PHP
1717
uses: shivammathur/setup-php@v2
1818
with:
19-
php-version: '8.0'
19+
php-version: '8.3'
2020
coverage: none
2121

2222
- name: Install composer dependencies

.github/workflows/run-tests.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,16 @@ jobs:
99
fail-fast: true
1010
matrix:
1111
os: [ubuntu-latest]
12-
php: [8.2, 8.1]
13-
laravel: [10.*, 9.*]
12+
php: [8.3, 8.2]
13+
laravel: [11.*, 10.*]
1414
dependency-version: [prefer-lowest, prefer-stable]
1515
include:
16+
- laravel: 11.*
17+
testbench: 9.*
18+
collision: 8.*
1619
- laravel: 10.*
1720
testbench: 8.*
18-
- laravel: 9.*
19-
testbench: 7.*
21+
collision: 7.*
2022

2123
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }} - ${{ matrix.os }}
2224

@@ -38,7 +40,7 @@ jobs:
3840
3941
- name: Install dependencies
4042
run: |
41-
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update --dev
43+
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" "nunomaduro/collision:${{ matrix.collision }}" --no-interaction --no-update --dev
4244
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction
4345
4446
- name: Execute tests

composer.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,21 +17,21 @@
1717
],
1818
"require": {
1919
"php": "^8.0",
20-
"illuminate/contracts": "^9.0|^10.0",
20+
"illuminate/contracts": "^10.0|^11.0",
2121
"spatie/eloquent-sortable": "^4.0",
22-
"spatie/laravel-package-tools": "^1.9.2"
22+
"spatie/laravel-package-tools": "^1.16.4"
2323
},
2424
"require-dev": {
2525
"laravel/pint": "^1.0",
26-
"nunomaduro/collision": "^6.0",
26+
"nunomaduro/collision": "^7.0|^8.0",
2727
"nunomaduro/larastan": "^2.0.1",
28-
"orchestra/testbench": "^7.0|^8.0",
29-
"pestphp/pest": "^1.21",
30-
"pestphp/pest-plugin-laravel": "^1.1",
28+
"orchestra/testbench": "^8.0|^9.0",
29+
"pestphp/pest": "^2.0",
30+
"pestphp/pest-plugin-laravel": "^2.0",
3131
"phpstan/extension-installer": "^1.1",
3232
"phpstan/phpstan-deprecation-rules": "^1.0",
3333
"phpstan/phpstan-phpunit": "^1.0",
34-
"phpunit/phpunit": "^9.5",
34+
"phpunit/phpunit": "^10.0",
3535
"spatie/laravel-ray": "^1.26"
3636
},
3737
"autoload": {

src/SortableTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ protected function getSortingValue(): int
1111
return $this->{$this->determineOrderColumnName()};
1212
}
1313

14-
public function moveBetween(Sortable|int $before = null, Sortable|int $after = null): void
14+
public function moveBetween(Sortable|int|null $before = null, Sortable|int|null $after = null): void
1515
{
1616
$from = $this->getSortingValue();
1717
$to = null;

0 commit comments

Comments
 (0)