Skip to content

Commit b761ed4

Browse files
committed
No need for multiple PHPStan instances
1 parent 851b6f3 commit b761ed4

File tree

4 files changed

+5
-56
lines changed

4 files changed

+5
-56
lines changed

.github/workflows/phpstan.yml

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,8 @@ on:
88

99
jobs:
1010
larastan:
11-
name: L${{ matrix.laravel }} - Larastan${{ matrix.phpstan }}
11+
name: "Running Larastan check"
1212
runs-on: ubuntu-latest
13-
strategy:
14-
matrix:
15-
laravel: ["10.*", "11.*", "12.*"]
16-
include:
17-
- laravel: "10.*"
18-
phpstan: 1
19-
- laravel: "11.*"
20-
phpstan: 2
21-
- laravel: "12.*"
22-
phpstan: 2
23-
2413
steps:
2514
- name: Checkout code
2615
uses: actions/checkout@v3
@@ -39,9 +28,7 @@ jobs:
3928
key: composer-${{ hashFiles('composer.lock') }}
4029

4130
- name: Run composer install
42-
run: |
43-
composer require "laravel/framework:${{ matrix.laravel }}" --no-interaction --no-update
44-
composer update --prefer-dist --no-interaction
31+
run: composer install -n --prefer-dist
4532

4633
- name: Run phpstan
47-
run: ./vendor/bin/phpstan --configuration=phpstan${{ matrix.phpstan }}.neon
34+
run: ./vendor/bin/phpstan

phpstan.neon

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ parameters:
1111
ignoreErrors:
1212
- '#Parameter \#1 \$object_or_class of function method_exists expects object\|string, mixed given\.#'
1313
- '#Trying to invoke mixed but it(.*) not a callable\.#'
14-
15-
checkMissingIterableValueType: false
14+
-
15+
identifier: missingType.iterableValue
1616

1717
reportUnmatchedIgnoredErrors: false
1818

phpstan1.neon

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

phpstan2.neon

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

0 commit comments

Comments
 (0)