Skip to content

Commit f71613e

Browse files
Dropping support for compatibility with older versions of Laravel (8-10)
1 parent 084a0b5 commit f71613e

4 files changed

Lines changed: 18 additions & 19 deletions

File tree

.github/workflows/tests.yml

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -10,21 +10,8 @@ jobs:
1010
fail-fast: true
1111
matrix:
1212
php: [ "8.2", "8.3", "8.4" ]
13-
laravel: [ "8.0", "9.0", "10.0", "11.0", "12.0" ]
14-
exclude:
15-
- laravel: 8.0
16-
php: 8.3
17-
18-
- laravel: 8.0
19-
php: 8.4
20-
21-
- laravel: 98.0
22-
php: 8.3
23-
24-
- laravel: 9.0
25-
php: 8.4
26-
27-
13+
laravel: [ "11.0", "12.0" ]
14+
2815
name: PHP ${{ matrix.php }}, Laravel ${{ matrix.laravel }}
2916

3017
steps:

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ Or manually update `require` block of `composer.json` and run composer update.
2828
}
2929
```
3030

31+
> [!TIP]
32+
>
33+
> When using the Laravel framework, make sure that its version is 11.0 or greater.
34+
3135
## Usage
3236

3337
When calling a sort with common values, each element will be assigned to one of five groups:

UPGRADE.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,20 @@
22

33
## To 2.x from 1.0
44

5+
### PHP 8.2.0 Required
6+
7+
`Size Sorter` now requires PHP 8.2.0 or greater.
8+
59
### Updating Dependencies
610

711
You should update the following dependencies in your application's `composer.json` file:
812

913
- `dragon-code/size-sorter` to `^2.0`
1014

15+
### Frameworks Compatibility
16+
17+
When using the Laravel framework, make sure that its version is 11.0 or greater.
18+
1119
### Changing Namespace
1220

1321
Namespace should be changed:

composer.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,14 @@
3636
],
3737
"require": {
3838
"php": "^8.2",
39-
"illuminate/collections": "^8.0 || ^9.0 || ^10.0 || ^11.0 || ^12.0"
39+
"illuminate/collections": "^11.0 || ^12.0"
4040
},
4141
"require-dev": {
4242
"dragon-code/codestyler": "^6.0",
4343
"fakerphp/faker": "^1.21",
44-
"illuminate/database": "^8.0 || ^9.0 || ^10.0 || ^11.0 || ^12.0",
45-
"phpunit/phpunit": "^11.0 || ^12.0",
46-
"symfony/var-dumper": "^5.3 || ^6.0 || ^7.0"
44+
"illuminate/database": "^11.0 || ^12.0",
45+
"phpunit/phpunit": "^12.0",
46+
"symfony/var-dumper": "^7.0"
4747
},
4848
"minimum-stability": "stable",
4949
"prefer-stable": true,

0 commit comments

Comments
 (0)