Use ??= for static variable initialization #258
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 Style | |
on: | |
push: | |
pull_request: | |
jobs: | |
easy-coding-standard: | |
name: Easy Coding Standard | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: "8.1" | |
- name: Install composer dependencies | |
uses: ramsey/composer-install@v2 | |
with: | |
working-directory: "tools/ecs" | |
- name: Run ECS | |
run: tools/ecs/vendor/bin/ecs check --config tools/ecs/ecs.php |