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