From 67961210031c8dd8245a5108b507499b8bf20530 Mon Sep 17 00:00:00 2001 From: peptiderepo Date: Sun, 12 Apr 2026 17:28:46 +0700 Subject: [PATCH] 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 --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 03d6993..1498fe8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -89,7 +89,7 @@ jobs: run: composer install --prefer-dist --no-progress - 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: