@@ -115,7 +115,7 @@ jobs:
115115 uses : shivammathur/setup-php@v2
116116 with :
117117 php-version : ${{ matrix.php-versions }}
118- extensions : ctype, date, dom, fileinfo, filter, hash, intl, mbstring, openssl, pcre, posix, spl, xml
118+ extensions : ctype, date, dom, fileinfo, filter, hash, intl, mbstring, openssl, pcre, posix, spl, xml, zip
119119 tools : composer
120120 ini-values : error_reporting=E_ALL
121121 coverage : none
@@ -162,9 +162,8 @@ jobs:
162162 with :
163163 # Should be the higest supported version, so we can use the newest tools
164164 php-version : ' 8.4'
165- tools : composer, composer-require-checker, composer-unused, phpcs, psalm
166- # optional performance gain for psalm: opcache
167- extensions : ctype, date, dom, fileinfo, filter, hash, intl, mbstring, opcache, openssl, pcre, posix, spl, xml
165+ tools : composer, composer-require-checker, composer-unused, phpcs, phpstan
166+ extensions : ctype, date, dom, fileinfo, filter, hash, intl, mbstring, openssl, pcre, posix, spl, xml
168167
169168 - name : Setup problem matchers for PHP
170169 run : echo "::add-matcher::${{ runner.tool_cache }}/php.json"
@@ -196,27 +195,13 @@ jobs:
196195 - name : PHP Code Sniffer
197196 run : phpcs
198197
199- - name : Psalm
200- continue-on-error : true
201- run : |
202- psalm -c psalm.xml \
203- --show-info=true \
204- --shepherd \
205- --php-version=${{ steps.setup-php.outputs.php-version }}
206-
207- - name : Psalm (testsuite)
198+ - name : PHPStan
208199 run : |
209- psalm -c psalm-dev.xml \
210- --show-info=true \
211- --shepherd \
212- --php-version=${{ steps.setup-php.outputs.php-version }}
200+ vendor/bin/phpstan analyze -c phpstan.neon
213201
214- - name : Psalter
202+ - name : PHPStan (testsuite)
215203 run : |
216- psalm --alter \
217- --issues=UnnecessaryVarAnnotation \
218- --dry-run \
219- --php-version=${{ steps.setup-php.outputs.php-version }}
204+ vendor/bin/phpstan analyze -c phpstan-dev.neon
220205
221206 security :
222207 name : Security checks
0 commit comments