diff --git a/.github/workflows/phpstan.yml b/.github/workflows/phpstan.yml index e8bac3d51..c90525791 100644 --- a/.github/workflows/phpstan.yml +++ b/.github/workflows/phpstan.yml @@ -49,8 +49,9 @@ jobs: - name: "Install highest dependencies from composer.json using composer binary provided by system" run: "composer config platform --unset && composer update ${{ env.COMPOSER_FLAGS }}" - - name: Run PHPStan + - name: "Install PHPStan" # Locked to phpunit 7.5 here as newer ones have void return types which break inheritance - run: | - bin/composer require --dev phpstan/phpstan:^0.12.93 phpstan/phpstan-phpunit:^0.12.17 phpunit/phpunit:^7.5.20 --with-all-dependencies ${{ env.COMPOSER_FLAGS }} - vendor/bin/phpstan analyse --configuration=phpstan/config.neon + run: "bin/composer require --dev phpstan/phpstan:^0.12.93 phpstan/phpstan-phpunit:^0.12.17 phpunit/phpunit:^7.5.20 --with-all-dependencies ${{ env.COMPOSER_FLAGS }}" + + - name: "Run PHPStan" + run: "vendor/bin/phpstan analyse --configuration=phpstan/config.neon"