Add new StyleCI rules for empty loop body braces and integer literal case. #41
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
on: | |
pull_request: | |
paths-ignore: | |
- 'docs/**' | |
- 'README.md' | |
- 'CHANGELOG.md' | |
- '.gitignore' | |
- '.gitattributes' | |
- 'infection.json.dist' | |
- 'phpunit.xml.dist' | |
push: | |
paths-ignore: | |
- 'docs/**' | |
- 'README.md' | |
- 'CHANGELOG.md' | |
- '.gitignore' | |
- '.gitattributes' | |
- 'infection.json.dist' | |
- 'phpunit.xml.dist' | |
name: static analysis | |
jobs: | |
phpstan: | |
uses: php-forge/actions/.github/workflows/phpstan.yml@main | |
with: | |
composer-command: | | |
composer require yiisoft/yii2:^2.2.x-dev --prefer-dist --no-progress --no-interaction --no-scripts --ansi | |
os: >- | |
['ubuntu-latest'] | |
php: >- | |
['8.1'] |