diff --git a/.github/workflows/php-lint-pr.yml b/.github/workflows/php-lint-pr.yml index 6b8704491..6396bb98f 100644 --- a/.github/workflows/php-lint-pr.yml +++ b/.github/workflows/php-lint-pr.yml @@ -7,14 +7,16 @@ jobs: name: PHPCS (Files Changed) runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v5 with: fetch-depth: 0 # The blame will not work without this # PHP 8 will throw PHP Fatal error: Uncaught TypeError: vsprintf(): Argument #2 ($values) must be of type array, string given in ... - - uses: nanasess/setup-php@v3 + - uses: shivammathur/setup-php@v2 with: php-version: '7.4' + tools: composer:v2 + coverage: none - name: Install dependencies run: composer install --dev --prefer-dist --no-progress --no-suggest @@ -23,4 +25,4 @@ jobs: with: files: "**.php,**.js,**.css" phpcs_path: ./vendor/bin/phpcs - standard: phpcs.xml \ No newline at end of file + standard: phpcs.xml