Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Laravel 11 Support #47

Merged
merged 7 commits into from
Mar 14, 2024
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
2 changes: 1 addition & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ root = true

[*]
charset = utf-8
indent_size = 4
indent_size = 2
indent_style = space
end_of_line = lf
trim_trailing_whitespace = true
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/bc-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,10 @@ jobs:
- name: "Install PHP"
uses: shivammathur/setup-php@v2
with:
php-version: "8.1"
php-version: "8.3"
- name: "Install dependencies"
run: "composer install"
- name: "Install BC check"
run: "composer require --dev roave/backward-compatibility-check"
- name: "Check for BC breaks"
run: "vendor/bin/roave-backward-compatibility-check"
10 changes: 6 additions & 4 deletions .github/workflows/infection.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,20 @@ jobs:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.1'
php-version: '8.3'
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, intl, fileinfo, sodium
coverage: xdebug
coverage: pcov

- name: Cache composer dependencies
uses: actions/cache@v2
with:
path: vendor
key: composer-${{ hashFiles('composer.lock') }}

- name: Run composer install
run: composer install -n --prefer-dist
- name: Install dependencies
run: |
composer require "laravel/framework:10.*" "pestphp/pest:^1.16" "nesbot/carbon:^2.64.1" --dev --no-interaction --no-update
composer update --prefer-stable --prefer-dist --no-interaction

- name: Run infection
run: ./vendor/bin/infection --show-mutations --min-msi=100 --min-covered-msi=100
4 changes: 2 additions & 2 deletions .github/workflows/phpstan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ jobs:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.1'
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick
php-version: '8.3'
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, intl
coverage: none

- name: Cache composer dependencies
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.1'
php-version: '8.3'
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, intl
coverage: none

Expand Down
15 changes: 10 additions & 5 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,18 @@ jobs:
strategy:
fail-fast: true
matrix:
os: [ubuntu-latest, windows-latest]
php: [8.0, 8.1, 8.2, 8.3]
laravel: ['10.x', '9.x']
os: [ubuntu-latest]
php: [8.1, 8.2, 8.3]
laravel: ['10.*', '11.*']
stability: [prefer-lowest, prefer-stable]
include:
- laravel: 10.*
testbench: 8.*
- laravel: 11.*
testbench: 9.*
exclude:
- laravel: '10.x'
php: 8.0
- laravel: 11.*
php: 8.1

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

Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ testbench.yaml
vendor
node_modules
.php-cs-fixer.cache
.phpunit.cache
24 changes: 11 additions & 13 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,23 +16,21 @@
}
],
"require": {
"php": "^8.0",
"illuminate/contracts": "^9.33|^10.0",
"illuminate/validation": "^9.33|^10.0",
"michael-rubel/laravel-formatters": "^7.0.6",
"php": "^8.1",
"illuminate/contracts": "^10.0|^11.0",
"illuminate/validation": "^10.0|^11.0",
"michael-rubel/laravel-formatters": "^8.0",
"phpmath/bignumber": "^1.2",
"spatie/laravel-package-tools": "^1.12"
},
"require-dev": {
"infection/infection": "^0.26.7",
"laravel/pint": "^1.2",
"mockery/mockery": "^1.4.4",
"nunomaduro/collision": "^6.0|^7.0",
"nunomaduro/larastan": "^2.2",
"orchestra/testbench": "^7.4|^8.0",
"pestphp/pest": "^1.16",
"phpunit/phpunit": "^9.5|^10.0",
"roave/backward-compatibility-check": "^7.0|^8.0"
"infection/infection": "^0.27.3",
"laravel/pint": "^1.0",
"nunomaduro/collision": "^6.0|^7.0|^8.0",
"larastan/larastan": "^2.0",
"orchestra/testbench": "^8.0|^9.0",
"pestphp/pest": "^1.16|^2.0",
"phpunit/phpunit": "^9.5|^10.5"
},
"autoload": {
"psr-4": {
Expand Down
Loading
Loading