|
54 | 54 | with: |
55 | 55 | # Should be the higest supported version, so we can use the newest tools |
56 | 56 | php-version: '8.4' |
57 | | - tools: composer, composer-require-checker, composer-unused, phpcs, psalm |
58 | | - # optional performance gain for psalm: opcache |
59 | | - extensions: ctype, date, dom, fileinfo, filter, hash, intl, mbstring, opcache, openssl, pcre, posix, spl, xml |
| 57 | + tools: composer, composer-require-checker, composer-unused, phpcs, phpstan |
| 58 | + extensions: ctype, date, dom, fileinfo, filter, hash, intl, mbstring, openssl, pcre, posix, spl, xml |
60 | 59 |
|
61 | 60 | - name: Setup problem matchers for PHP |
62 | 61 | run: echo "::add-matcher::${{ runner.tool_cache }}/php.json" |
@@ -88,27 +87,13 @@ jobs: |
88 | 87 | - name: PHP Code Sniffer |
89 | 88 | run: phpcs |
90 | 89 |
|
91 | | - - name: Psalm |
92 | | - continue-on-error: true |
93 | | - run: | |
94 | | - psalm -c psalm.xml \ |
95 | | - --show-info=true \ |
96 | | - --shepherd \ |
97 | | - --php-version=${{ steps.setup-php.outputs.php-version }} |
98 | | -
|
99 | | - - name: Psalm (testsuite) |
| 90 | + - name: PHPStan |
100 | 91 | run: | |
101 | | - psalm -c psalm-dev.xml \ |
102 | | - --show-info=true \ |
103 | | - --shepherd \ |
104 | | - --php-version=${{ steps.setup-php.outputs.php-version }} |
| 92 | + vendor/bin/phpstan analyze -c phpstan.neon --debug |
105 | 93 |
|
106 | | - - name: Psalter |
| 94 | + - name: PHPStan (testsuite) |
107 | 95 | run: | |
108 | | - psalm --alter \ |
109 | | - --issues=UnnecessaryVarAnnotation \ |
110 | | - --dry-run \ |
111 | | - --php-version=${{ steps.setup-php.outputs.php-version }} |
| 96 | + vendor/bin/phpstan analyze -c phpstan-dev.neon --debug |
112 | 97 |
|
113 | 98 | security: |
114 | 99 | name: Security checks |
|
0 commit comments