Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 2 additions & 15 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,21 +10,8 @@ jobs:
fail-fast: true
matrix:
php: [ "8.2", "8.3", "8.4" ]
laravel: [ "8.0", "9.0", "10.0", "11.0", "12.0" ]
exclude:
- laravel: 8.0
php: 8.3

- laravel: 8.0
php: 8.4

- laravel: 98.0
php: 8.3

- laravel: 9.0
php: 8.4


laravel: [ "11.0", "12.0" ]

name: PHP ${{ matrix.php }}, Laravel ${{ matrix.laravel }}

steps:
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ Or manually update `require` block of `composer.json` and run composer update.
}
```

> [!TIP]
>
> When using the Laravel framework, make sure that its version is 11.0 or greater.

## Usage

When calling a sort with common values, each element will be assigned to one of five groups:
Expand Down
8 changes: 8 additions & 0 deletions UPGRADE.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,20 @@

## To 2.x from 1.0

### PHP 8.2.0 Required

`Size Sorter` now requires PHP 8.2.0 or greater.

### Updating Dependencies

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

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

### Frameworks Compatibility

When using the Laravel framework, make sure that its version is 11.0 or greater.

### Changing Namespace

Namespace should be changed:
Expand Down
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,14 @@
],
"require": {
"php": "^8.2",
"illuminate/collections": "^8.0 || ^9.0 || ^10.0 || ^11.0 || ^12.0"
"illuminate/collections": "^11.0 || ^12.0"
},
"require-dev": {
"dragon-code/codestyler": "^6.0",
"fakerphp/faker": "^1.21",
"illuminate/database": "^8.0 || ^9.0 || ^10.0 || ^11.0 || ^12.0",
"illuminate/database": "^11.0 || ^12.0",
"phpunit/phpunit": "^11.0 || ^12.0",
"symfony/var-dumper": "^5.3 || ^6.0 || ^7.0"
"symfony/var-dumper": "^7.0"
},
"minimum-stability": "stable",
"prefer-stable": true,
Expand Down
Loading