Skip to content

Commit 5e0a90c

Browse files
committed
chore: allow phpstan v1
1 parent e0e1ccb commit 5e0a90c

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

.github/workflows/ci.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,16 @@ jobs:
1414
matrix:
1515
php-versions: ['7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3']
1616
coverage: ['pcov']
17+
code-style: ['no']
1718
code-analysis: ['no']
1819
include:
1920
- php-versions: '7.1'
2021
coverage: 'none'
22+
code-style: 'yes'
2123
code-analysis: 'yes'
2224
- php-versions: '8.4'
2325
coverage: 'pcov'
26+
code-style: 'no'
2427
code-analysis: 'yes'
2528
steps:
2629
- name: Checkout
@@ -51,7 +54,7 @@ jobs:
5154
run: composer install --no-progress --prefer-dist --optimize-autoloader
5255

5356
- name: Code Analysis (PHP CS-Fixer)
54-
if: matrix.code-analysis == 'yes'
57+
if: matrix.code-style == 'yes'
5558
run: PHP_CS_FIXER_IGNORE_ENV=true php vendor/bin/php-cs-fixer fix --dry-run --diff
5659

5760
- name: Code Analysis (PHPStan)

composer.json

+4-3
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,14 @@
4646
}
4747
},
4848
"require-dev": {
49-
"friendsofphp/php-cs-fixer": "~2.17.1",
50-
"phpstan/phpstan": "^0.12",
49+
"friendsofphp/php-cs-fixer": "~2.17.1 || ^3.60",
50+
"phpstan/phpstan": "^0.12 || ^1.1",
5151
"phpunit/phpunit" : "^7.5 || ^8.5 || ^9.6"
5252
},
5353
"scripts": {
5454
"phpstan": [
55-
"phpstan analyse lib tests"
55+
"phpstan analyse lib",
56+
"phpstan analyse tests"
5657
],
5758
"cs-fixer": [
5859
"php-cs-fixer fix"

0 commit comments

Comments
 (0)