Skip to content

Commit ca7fa68

Browse files
authored
Merge pull request #71 from PHPCSStandards/feature/phpstan-tweaks
PHPStan setup: various tweaks
2 parents 9239861 + 38291f6 commit ca7fa68

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.github/workflows/phpstan.yml

+3-2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ on:
66
push:
77
paths-ignore:
88
- '**.md'
9+
- '**.xml'
910
pull_request:
1011
# Allow manually triggering the workflow.
1112
workflow_dispatch:
@@ -18,7 +19,7 @@ concurrency:
1819

1920
jobs:
2021
phpstan:
21-
name: "PHP: 7.4 | PHPStan"
22+
name: "PHPStan"
2223

2324
runs-on: "ubuntu-latest"
2425

@@ -43,4 +44,4 @@ jobs:
4344
custom-cache-suffix: $(date -u "+%Y-%m")
4445

4546
- name: Run PHPStan
46-
run: phpstan analyse --configuration=phpstan.neon
47+
run: phpstan analyse

phpstan.neon renamed to phpstan.neon.dist

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
parameters:
2+
phpVersion: 70100 # Should be 50400, but PHPStan only accepts 70100 or higher...
23
level: 0
34
paths:
45
- src
@@ -8,7 +9,7 @@ parameters:
89
-
910
count: 1
1011
message: '~^Undefined variable: \$phpCodeSnifferConfig$~'
11-
path: %currentWorkingDirectory%/src/Config.php
12+
path: src/Config.php
1213

1314
dynamicConstantNames:
1415
- PHP_CODESNIFFER_IN_TESTS

0 commit comments

Comments
 (0)