Skip to content

Commit 7ddabaa

Browse files
authored
Laravel 10 support (#28)
* Locked PHP versions to 8.1 and 8.2 * Dropped Laravel 8 support * Added Laravel 10 support
1 parent 326edd4 commit 7ddabaa

File tree

4 files changed

+26
-19
lines changed

4 files changed

+26
-19
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,13 @@ jobs:
1414
strategy:
1515
fail-fast: true
1616
matrix:
17-
php: ['8.2', '8.1']
18-
laravel: ['9.*', '8.*']
17+
php: ['8.1', '8.2']
18+
laravel: ['9.*', '10.*']
1919
include:
2020
- laravel: '9.*'
2121
testbench: '7.*'
22-
larastan: '2.*'
23-
- laravel: '8.*'
24-
testbench: '6.*'
25-
larastan: '1.*'
22+
- laravel: '10.*'
23+
testbench: '8.*'
2624

2725
name: P${{ matrix.php }} - L${{ matrix.laravel }}
2826

@@ -51,26 +49,26 @@ jobs:
5149
# Lower PHP and laravel versions.
5250

5351
- name: PHPUnit without code coverage
54-
if: matrix.php != '8.2' || matrix.laravel != '9.*'
52+
if: matrix.php != '8.2' || matrix.laravel != '10.*'
5553
run: vendor/bin/testbench package:test --parallel --no-coverage
5654

5755
# Last PHP and laravel versions.
5856

5957
- name: Code analysis
60-
if: matrix.php == '8.2' && matrix.laravel == '9.*'
58+
if: matrix.php == '8.2' && matrix.laravel == '10.*'
6159
run: |
6260
vendor/bin/pint --test -vvv
6361
vendor/bin/phpmd config,src,tests text phpmd.xml
6462
vendor/bin/phpstan analyse
6563
6664
- name: PHPUnit with code coverage
67-
if: matrix.php == '8.2' && matrix.laravel == '9.*'
65+
if: matrix.php == '8.2' && matrix.laravel == '10.*'
6866
run: |
6967
mkdir -p build/logs
7068
vendor/bin/testbench package:test --parallel --coverage-text --coverage-clover build/logs/clover.xml
7169
7270
- name: Code coverage upload to Coveralls
73-
if: env.COVERALLS_REPO_TOKEN && matrix.php == '8.2' && matrix.laravel == '9.*'
71+
if: env.COVERALLS_REPO_TOKEN && matrix.php == '8.2' && matrix.laravel == '10.*'
7472
env:
7573
COVERALLS_RUN_LOCALLY: 1
7674
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}

CHANGELOG.md

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

33
All notable changes to this package will be documented in this file.
44

5+
## [1.2.0](https://github.com/Okipa/laravel-form-components/compare/1.1.0...1.2.0)
6+
7+
2023-01-21
8+
9+
* Locked PHP versions to 8.1 and 8.2
10+
* Dropped Laravel 8 support
11+
* Added Laravel 10 support
12+
513
## [1.1.0](https://github.com/Okipa/laravel-form-components/compare/1.0.9...1.1.0)
614

715
2022-12-23

README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,11 @@ Found this package helpful? Please consider supporting my work!
3131

3232
## Compatibility
3333

34-
| Laravel | Livewire | PHP | Package |
35-
|---|---|---|---|
36-
| ^8.0 | ^9.0 | ^2.0 | ^8.1 | ^8.2 | ^1.1 |
37-
| ^8.0 | ^9.0 | ^2.0 | ^8.0 | ^8.1 | ^1.0 |
34+
| Laravel | Livewire | PHP | Package |
35+
|-------------------|---|--------------------|------|
36+
| ^9.0 | ^10.0 | ^2.0 | 8.1.* | 8.2.* | ^1.2 |
37+
| ^8.0 | ^9.0 | ^2.0 | ^8.1 | ^8.2 | ^1.1 |
38+
| ^8.0 | ^9.0 | ^2.0 | ^8.0 | ^8.1 | ^1.0 |
3839

3940
## Upgrade guide
4041

composer.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,15 @@
2525
}
2626
],
2727
"require": {
28-
"php": "^8.1|^8.2",
29-
"illuminate/contracts": "^8.0|^9.0"
28+
"php": "8.1.*|8.2.*",
29+
"illuminate/contracts": "^9.0|^10.0"
3030
},
3131
"require-dev": {
3232
"roave/security-advisories": "dev-latest",
3333
"brianium/paratest": "^6.4",
34-
"nunomaduro/collision": "^5.10|^6.0",
35-
"nunomaduro/larastan": "^1.0|^2.0",
36-
"orchestra/testbench": "^6.0|^7.0",
34+
"nunomaduro/collision": "^6.0",
35+
"nunomaduro/larastan": "^2.0",
36+
"orchestra/testbench": "^7.0|^8.0",
3737
"phpmd/phpmd": "^2.11",
3838
"phpstan/phpstan-mockery": "^1.0",
3939
"laravel/pint": "^1.1"

0 commit comments

Comments
 (0)