fix: tell PHPCS to ignore warnings on exit in CI

PHPCS exits with code 2 when fixable violations exist, even if they
are all warnings (0 errors). Add --runtime-set ignore_warnings_on_exit 1
so that warnings are still displayed but don't fail the CI job.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
peptiderepo
2026-04-12 17:28:46 +07:00
parent f44c86a949
commit 6796121003

View File

@@ -89,7 +89,7 @@ jobs:
run: composer install --prefer-dist --no-progress run: composer install --prefer-dist --no-progress
- name: Run PHPCS - name: Run PHPCS
run: vendor/bin/phpcs --standard=.phpcs.xml.dist run: vendor/bin/phpcs --standard=.phpcs.xml.dist --runtime-set ignore_warnings_on_exit 1
# ── PHPUnit Tests ──────────────────────────────────────────────── # ── PHPUnit Tests ────────────────────────────────────────────────
phpunit: phpunit: