Fix implicitly marking parameter as nullable deprecation for PHP 8.4 #143
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Coding Standards" | |
on: ["pull_request"] | |
jobs: | |
coding-standards: | |
name: "Coding Standards" | |
runs-on: "ubuntu-20.04" | |
strategy: | |
matrix: | |
php-version: | |
- "7.4" | |
steps: | |
- name: "Checkout" | |
uses: "actions/checkout@v2" | |
with: | |
fetch-depth: 10 | |
- name: "Install PHP" | |
uses: "shivammathur/setup-php@v2" | |
with: | |
coverage: "none" | |
php-version: "${{ matrix.php-version }}" | |
tools: "cs2pr" | |
- name: "Cache dependencies installed with Composer" | |
uses: "actions/cache@v2" | |
with: | |
path: "~/.composer/cache" | |
key: "php-${{ matrix.php-version }}-composer-locked-${{ hashFiles('composer.lock') }}" | |
restore-keys: "php-${{ matrix.php-version }}-composer-locked-" | |
- name: "Install dependencies with Composer" | |
run: "composer update --no-interaction --no-progress --prefer-dist --prefer-stable" | |
- name: "Install git-phpcs" | |
run: "wget https://github.com/diff-sniffer/git/releases/download/0.3.2/git-phpcs.phar" | |
- name: "Fetch head branch" | |
run: "git remote set-branches --add origin $GITHUB_BASE_REF && git fetch origin $GITHUB_BASE_REF" | |
- name: "Run git-phpcs" | |
run: "php git-phpcs.phar origin/$GITHUB_BASE_REF...$GITHUB_SHA --report=checkstyle | cs2pr" |