Skip to content

Commit 2468219

Browse files
authored
Merge pull request #39 from worksome/feature/laravel-11
feat: add support for Laravel 11
2 parents 640b465 + baf0561 commit 2468219

File tree

6 files changed

+34
-25
lines changed

6 files changed

+34
-25
lines changed

.github/workflows/phpstan.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
name: phpstan
1313
runs-on: ubuntu-latest
1414
steps:
15-
- uses: actions/checkout@v3
15+
- uses: actions/checkout@v4
1616

1717
- name: Setup PHP
1818
uses: shivammathur/setup-php@v2
@@ -22,7 +22,7 @@ jobs:
2222

2323
- name: Install composer dependencies
2424
run: |
25-
composer require "nunomaduro/larastan:^2.0"
25+
composer require "larastan/larastan:^2.6"
2626
composer update --prefer-dist --no-interaction
2727
2828
- name: Run PHPStan

.github/workflows/run-tests.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,20 @@ jobs:
1313
fail-fast: true
1414
matrix:
1515
os: [ubuntu-latest, windows-latest]
16-
php: [8.2]
17-
laravel: [10.*]
16+
php: [8.2, 8.3]
17+
laravel: [10.*, 11.*]
1818
stability: [prefer-stable]
1919
include:
2020
- laravel: 10.*
2121
testbench: 8.*
22+
- laravel: 11.*
23+
testbench: 9.*
2224

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

2527
steps:
2628
- name: Checkout code
27-
uses: actions/checkout@v3
29+
uses: actions/checkout@v4
2830

2931
- name: Setup PHP
3032
uses: shivammathur/setup-php@v2

composer.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,19 +17,19 @@
1717
],
1818
"require": {
1919
"php": "^8.2",
20-
"illuminate/contracts": "^10.0",
20+
"illuminate/contracts": "^10.0 || ^11.0",
2121
"nikic/php-parser": "^4.15",
22-
"nunomaduro/termwind": "^1.15",
23-
"spatie/laravel-package-tools": "^1.14.1",
22+
"nunomaduro/termwind": "^1.15 || ^2.0",
23+
"spatie/laravel-package-tools": "^1.16",
2424
"thecodingmachine/safe": "^2.4"
2525
},
2626
"require-dev": {
27-
"nunomaduro/collision": "^7.0",
28-
"nunomaduro/larastan": "^2.4.0",
29-
"orchestra/testbench": "^8.0",
30-
"pestphp/pest": "^2.0",
31-
"pestphp/pest-plugin-laravel": "^2.0",
32-
"worksome/coding-style": "^2.3.2"
27+
"nunomaduro/collision": "^7.0 || ^8.1",
28+
"larastan/larastan": "^2.6",
29+
"orchestra/testbench": "^8.0 || ^9.0",
30+
"pestphp/pest": "^2.33",
31+
"pestphp/pest-plugin-laravel": "^2.2",
32+
"worksome/coding-style": "^2.8"
3333
},
3434
"autoload": {
3535
"psr-4": {

phpstan-baseline.neon

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
parameters:
2+
ignoreErrors:
3+
-
4+
message: "#^Parameter \\#1 \\$value of function strval expects bool\\|float\\|int\\|resource\\|string\\|null, array\\|string given\\.$#"
5+
count: 1
6+
path: src/Commands/PruneCommand.php
7+
8+
-
9+
message: "#^Parameter \\#1 \\$value of function strval expects bool\\|float\\|int\\|resource\\|string\\|null, array\\|string given\\.$#"
10+
count: 1
11+
path: src/Commands/SyncCommand.php
12+
13+
-
14+
message: "#^Parameter \\#1 \\$value of function strval expects bool\\|float\\|int\\|resource\\|string\\|null, mixed given\\.$#"
15+
count: 1
16+
path: src/Support/PhpParser/EnvCallNodeVisitor.php

phpunit.xml.dist

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
<directory>tests</directory>
1010
</testsuite>
1111
</testsuites>
12-
<coverage>
12+
<source>
1313
<include>
1414
<directory suffix=".php">src</directory>
1515
</include>
16-
</coverage>
16+
</source>
1717
</phpunit>

renovate.json

Lines changed: 0 additions & 9 deletions
This file was deleted.

0 commit comments

Comments
 (0)