Skip to content

Commit 400a4be

Browse files
Laravel 11 Support (#16)
## Maintenance PR - Dependencies & tests - Laravel 11 support - Drop PHP 8.0 & Laravel 9 (both EOL)
1 parent 510a678 commit 400a4be

17 files changed

+4195
-5743
lines changed

.editorconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ root = true
22

33
[*]
44
charset = utf-8
5-
indent_size = 4
5+
indent_size = 2
66
indent_style = space
77
end_of_line = lf
88
trim_trailing_whitespace = true

.github/workflows/bc-check.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,12 @@ jobs:
1919
- name: "Install PHP"
2020
uses: shivammathur/setup-php@v2
2121
with:
22-
php-version: "8.1"
22+
php-version: "8.3"
2323
- name: "Install dependencies"
24-
run: "composer install"
24+
run: |
25+
composer require "laravel/framework:10.*" "nesbot/carbon:^2.64.1" --dev --no-interaction --no-update
26+
composer update --prefer-stable --prefer-dist --no-interaction
27+
- name: "Install BC check"
28+
run: "composer require --dev roave/backward-compatibility-check"
2529
- name: "Check for BC breaks"
2630
run: "vendor/bin/roave-backward-compatibility-check"

.github/workflows/phpstan.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ jobs:
1616
- name: Setup PHP
1717
uses: shivammathur/setup-php@v2
1818
with:
19-
php-version: '8.1'
20-
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick
19+
php-version: '8.3'
20+
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, intl
2121
coverage: none
2222

2323
- name: Cache composer dependencies

.github/workflows/pint.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: "Laravel Pint"
1+
name: pint
22

33
on:
44
push:
@@ -16,8 +16,8 @@ jobs:
1616
- name: Setup PHP
1717
uses: shivammathur/setup-php@v2
1818
with:
19-
php-version: '8.1'
20-
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, intl, gd, exif, iconv
19+
php-version: '8.3'
20+
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, intl
2121
coverage: none
2222

2323
- name: Cache composer dependencies

.github/workflows/run-tests.yml

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,18 @@ jobs:
1212
strategy:
1313
fail-fast: true
1414
matrix:
15-
os: [ubuntu-latest, windows-latest]
16-
php: [8.0, 8.1, 8.2]
17-
laravel: ['10.x', '9.x']
15+
os: [ubuntu-latest]
16+
php: [8.1, 8.2, 8.3]
17+
laravel: ['10.*', '11.*']
1818
stability: [prefer-lowest, prefer-stable]
19+
include:
20+
- laravel: 10.*
21+
testbench: 8.*
22+
- laravel: 11.*
23+
testbench: 9.*
1924
exclude:
20-
- laravel: '10.x'
21-
php: 8.0
25+
- laravel: 11.*
26+
php: 8.1
2227

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

@@ -31,7 +36,7 @@ jobs:
3136
with:
3237
php-version: ${{ matrix.php }}
3338
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, intl, fileinfo, sodium
34-
coverage: xdebug
39+
coverage: pcov
3540

3641
- name: Setup problem matchers
3742
run: |

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,4 @@ testbench.yaml
1010
vendor
1111
node_modules
1212
.php-cs-fixer.cache
13+
.phpunit.cache

composer.json

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -16,19 +16,16 @@
1616
}
1717
],
1818
"require": {
19-
"php": "^8.0",
20-
"illuminate/contracts": "^9.0|^10.0",
21-
"spatie/laravel-package-tools": "^1.11"
19+
"php": "^8.1",
20+
"illuminate/contracts": "^10.0|^11.0",
21+
"spatie/laravel-package-tools": "^1.12"
2222
},
2323
"require-dev": {
24-
"brianium/paratest": "^6.3",
25-
"laravel/pint": "^0.2.1",
26-
"mockery/mockery": "^1.4.4",
27-
"nunomaduro/collision": "^6.0",
28-
"nunomaduro/larastan": "^2.0",
29-
"orchestra/testbench": "^7.0|^8.0",
30-
"phpunit/phpunit": "^9.5",
31-
"roave/backward-compatibility-check": "^7.0|^8.0"
24+
"laravel/pint": "^1.0",
25+
"nunomaduro/collision": "^7.0|^8.0",
26+
"larastan/larastan": "^2.0",
27+
"orchestra/testbench": "^8.0|^9.0",
28+
"phpunit/phpunit": "^9.5|^10.5"
3229
},
3330
"autoload": {
3431
"psr-4": {

0 commit comments

Comments
 (0)