From 0373677b7fbe4fc0d2178f5d4e84a35fd3dd4341 Mon Sep 17 00:00:00 2001 From: Hafiz Muhammad Moaz Date: Wed, 22 Jul 2026 16:19:08 +0500 Subject: [PATCH] fix: install Xdebug in CI so header assertions run The `test` job on main was failing with 18 errors, all `Call to undefined function xdebug_get_headers()`. `Tests\Session\TestCase` inspects sent headers through `xdebug_get_headers()`, but CI installed pcov instead of Xdebug. Switched `coverage` to `xdebug` and set `xdebug.mode="develop,coverage"`. Co-Authored-By: Claude Opus 4.8 --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f438263..90b0682 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -48,8 +48,8 @@ jobs: with: php-version: '8.4' extensions: intl, sodium, gd, mysqli, curl, fileinfo, json, dom, simplexml, mbstring, zip, redis, memcached, apcu - coverage: pcov - ini-values: apc.enable_cli=1, mysqli.allow_local_infile=1 + coverage: xdebug + ini-values: apc.enable_cli=1, mysqli.allow_local_infile=1, xdebug.mode="develop,coverage" - name: Validate composer.json run: composer validate --no-check-publish - name: Install dependencies