Skip to content

Commit 1799816

Browse files
committed
Replace psalm with phpstan
1 parent 28e2f23 commit 1799816

4 files changed

Lines changed: 18 additions & 48 deletions

File tree

.github/workflows/php.yml

Lines changed: 4 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -86,26 +86,13 @@ jobs:
8686
- name: PHP Code Sniffer
8787
run: phpcs
8888

89-
- name: Psalm
89+
- name: PHPStan
9090
run: |
91-
psalm -c psalm.xml \
92-
--show-info=true \
93-
--shepherd \
94-
--php-version=${{ steps.setup-php.outputs.php-version }}
91+
vendor/bin/phpstan analyze -c phpstan.neon
9592
96-
- name: Psalm (testsuite)
93+
- name: PHPStan (testsuite)
9794
run: |
98-
psalm -c psalm-dev.xml \
99-
--show-info=true \
100-
--shepherd \
101-
--php-version=${{ steps.setup-php.outputs.php-version }}
102-
103-
- name: Psalter
104-
run: |
105-
psalm --alter \
106-
--issues=UnnecessaryVarAnnotation \
107-
--dry-run \
108-
--php-version=${{ steps.setup-php.outputs.php-version }}
95+
vendor/bin/phpstan analyze -c phpstan-dev.neon
10996
11097
security:
11198
name: Security checks

phpstan-dev.neon

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
parameters:
2+
level: 5
3+
paths:
4+
- tests
5+
6+
includes:
7+
- phpstan-dev-baseline.neon

phpstan.neon

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
parameters:
2+
level: 6
3+
paths:
4+
- src
5+
6+
includes:
7+
- phpstan-baseline.neon

psalm.xml

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

0 commit comments

Comments
 (0)