diff --git a/.github/workflows/phpstan.yml b/.github/workflows/phpstan.yml index c98548624f..4b5e269b3a 100644 --- a/.github/workflows/phpstan.yml +++ b/.github/workflows/phpstan.yml @@ -19,7 +19,7 @@ concurrency: jobs: phpstan: - name: "PHP: 7.4 | PHPStan" + name: "PHPStan" runs-on: "ubuntu-latest" @@ -30,7 +30,7 @@ jobs: - name: Install PHP uses: shivammathur/setup-php@v2 with: - php-version: '7.4' + php-version: 'latest' coverage: none tools: phpstan diff --git a/phpstan.neon.dist b/phpstan.neon.dist index f0ab0473ed..92ffb3fc64 100644 --- a/phpstan.neon.dist +++ b/phpstan.neon.dist @@ -1,4 +1,5 @@ parameters: + phpVersion: 70100 # Should be 50400, but PHPStan only accepts 70100 or higher... level: 0 paths: - src @@ -8,7 +9,7 @@ parameters: - count: 1 message: '~^Undefined variable: \$phpCodeSnifferConfig$~' - path: %currentWorkingDirectory%/src/Config.php + path: src/Config.php dynamicConstantNames: - PHP_CODESNIFFER_IN_TESTS