Skip to content

Commit dd9249a

Browse files
Laravel 11 Support (#23)
* Update dependencies * Update CI scripts * Apply recent `laravel/pint` rules * Ignore PHPStan false positive * Migrate PHPUnit config * Fix PHP version for pint * Add PHP 8.3 to the test list
1 parent 327e71c commit dd9249a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+4720
-6113
lines changed

.github/workflows/bc-check.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,10 @@ 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"
2424
run: "composer install"
25+
- name: "Install BC check"
26+
run: "composer require --dev roave/backward-compatibility-check"
2527
- name: "Check for BC breaks"
2628
run: "vendor/bin/roave-backward-compatibility-check"

.github/workflows/infection.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.1'
19+
php-version: '8.3'
2020
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, intl, fileinfo, sodium
2121
coverage: xdebug
2222

.github/workflows/phpstan.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ jobs:
1818
- name: Setup PHP
1919
uses: shivammathur/setup-php@v2
2020
with:
21-
php-version: '8.1'
22-
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick
21+
php-version: '8.3'
22+
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, intl
2323
coverage: none
2424

2525
- name: Cache composer dependencies

.github/workflows/pint.yml

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

2222
- name: Cache composer dependencies

.github/workflows/run-tests.yml

Lines changed: 10 additions & 5 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.1, 8.2]
17-
laravel: [10.*]
15+
os: [ubuntu-latest]
16+
php: [8.1, 8.2, 8.3]
17+
laravel: ['10.*', '11.*']
1818
stability: [prefer-lowest, prefer-stable]
1919
include:
20-
- laravel: 10.*
21-
testbench: 8.*
20+
- laravel: 10.*
21+
testbench: 8.*
22+
- laravel: 11.*
23+
testbench: 9.*
24+
exclude:
25+
- laravel: 11.*
26+
php: 8.1
2227

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

.gitignore

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

composer.json

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,18 +18,17 @@
1818
],
1919
"require": {
2020
"php": "^8.1",
21-
"illuminate/contracts": "^10.0",
21+
"illuminate/contracts": "^10.0|^11.0",
2222
"spatie/laravel-package-tools": "^1.9"
2323
},
2424
"require-dev": {
25-
"brianium/paratest": "^6.3",
25+
"brianium/paratest": "^6.3|^7.4",
2626
"infection/infection": "^0.27.3",
27-
"laravel/pint": "^0.2.1",
28-
"nunomaduro/collision": "^6.0",
27+
"laravel/pint": "^1.0",
28+
"nunomaduro/collision": "^6.0|^7.0|^8.0",
2929
"nunomaduro/larastan": "^2.0",
30-
"orchestra/testbench": "^8.0",
31-
"phpunit/phpunit": "^9.5",
32-
"roave/backward-compatibility-check": "^8.0"
30+
"orchestra/testbench": "^8.0|^9.0",
31+
"phpunit/phpunit": "^9.5|^10.5"
3332
},
3433
"autoload": {
3534
"psr-4": {

0 commit comments

Comments
 (0)