From e51b81ac62674062e54d67c365cadea85539c4e3 Mon Sep 17 00:00:00 2001 From: Denny Septian Panggabean Date: Thu, 29 Oct 2026 21:57:46 +0700 Subject: [PATCH 1/9] chore: add PHP 8.6 to Github Action --- .github/workflows/reusable-phpunit-test.yml | 2 +- .../workflows/reusable-serviceless-phpunit-test.yml | 1 + .github/workflows/test-coding-standards.yml | 2 +- .github/workflows/test-phpunit.yml | 12 ++++++++++++ 4 files changed, 15 insertions(+), 2 deletions(-) diff --git a/.github/workflows/reusable-phpunit-test.yml b/.github/workflows/reusable-phpunit-test.yml index 2226a91b9fe4..e153867e8472 100644 --- a/.github/workflows/reusable-phpunit-test.yml +++ b/.github/workflows/reusable-phpunit-test.yml @@ -257,7 +257,7 @@ jobs: DB: ${{ inputs.db-platform }} TACHYCARDIA_MONITOR_GA: ${{ inputs.enable-profiling && 'enabled' || '' }} TERM: xterm-256color - continue-on-error: ${{ inputs.php-version == '8.5' }} + continue-on-error: ${{ inputs.php-version == '8.6' }} - name: Upload coverage results as artifact if: ${{ inputs.enable-artifact-upload }} diff --git a/.github/workflows/reusable-serviceless-phpunit-test.yml b/.github/workflows/reusable-serviceless-phpunit-test.yml index 2045da647009..ea2daa9b1fef 100644 --- a/.github/workflows/reusable-serviceless-phpunit-test.yml +++ b/.github/workflows/reusable-serviceless-phpunit-test.yml @@ -115,6 +115,7 @@ jobs: env: TACHYCARDIA_MONITOR_GA: ${{ inputs.enable-profiling && 'enabled' || '' }} TERM: xterm-256color + continue-on-error: ${{ inputs.php-version == '8.6' }} - name: Upload coverage results as artifact if: ${{ inputs.enable-artifact-upload }} diff --git a/.github/workflows/test-coding-standards.yml b/.github/workflows/test-coding-standards.yml index 1e7654c80c40..98ff4d587016 100644 --- a/.github/workflows/test-coding-standards.yml +++ b/.github/workflows/test-coding-standards.yml @@ -32,7 +32,7 @@ jobs: php-version: - '8.3' include: - - php-version: '8.5' + - php-version: '8.6' composer-option: '--ignore-platform-req=php' steps: diff --git a/.github/workflows/test-phpunit.yml b/.github/workflows/test-phpunit.yml index d5613a499443..0b63e3b37c9c 100644 --- a/.github/workflows/test-phpunit.yml +++ b/.github/workflows/test-phpunit.yml @@ -59,6 +59,9 @@ jobs: - '8.3' - '8.4' - '8.5' + include: + - php-version: '8.6' + composer-option: '--ignore-platform-req=php' uses: ./.github/workflows/reusable-phpunit-test.yml # @TODO Extract to codeigniter4/.github repo with: @@ -84,6 +87,7 @@ jobs: - '8.3' - '8.4' - '8.5' + - '8.6' db-platform: - MySQLi - OCI8 @@ -96,6 +100,8 @@ jobs: - php-version: '8.3' db-platform: MySQLi mysql-version: '5.7' + - php-version: '8.6' + composer-option: '--ignore-platform-req=php' uses: ./.github/workflows/reusable-phpunit-test.yml # @TODO Extract to codeigniter4/.github repo with: @@ -122,6 +128,9 @@ jobs: - '8.3' - '8.4' - '8.5' + include: + - php-version: '8.5' + composer-option: '--ignore-platform-req=php' uses: ./.github/workflows/reusable-phpunit-test.yml # @TODO Extract to codeigniter4/.github repo with: @@ -146,6 +155,9 @@ jobs: - '8.3' - '8.4' - '8.5' + include: + - php-version: '8.5' + composer-option: '--ignore-platform-req=php' uses: ./.github/workflows/reusable-phpunit-test.yml # @TODO Extract to codeigniter4/.github repo with: From c4485fb02154f3ea75813887ec4d1d56c7615114 Mon Sep 17 00:00:00 2001 From: Denny Septian Panggabean Date: Thu, 29 Oct 2026 22:01:56 +0700 Subject: [PATCH 2/9] chore: composer ignore platform --- composer.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 37772ad26e27..a306d25435eb 100644 --- a/composer.json +++ b/composer.json @@ -93,7 +93,8 @@ "CodeIgniter\\ComposerScripts::postUpdate" ], "post-autoload-dump": [ - "@composer update --ansi --working-dir=utils" + "@php -r \"if (PHP_VERSION_ID >= 80500) { echo '@todo Remove \"--ignore-platform-req=php\" once deps catch up.', PHP_EOL; }\"", + "@composer update --ansi --working-dir=utils --ignore-platform-req=php" ], "analyze": [ "Composer\\Config::disableProcessTimeout", From eb142ae6dd717e57d55a73d66de9a791539574c6 Mon Sep 17 00:00:00 2001 From: Denny Septian Panggabean Date: Tue, 3 Nov 2026 20:45:45 +0700 Subject: [PATCH 3/9] chore: set temporary utils composer --- utils/composer.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utils/composer.json b/utils/composer.json index 3fe29acb9c98..9f44721c7496 100644 --- a/utils/composer.json +++ b/utils/composer.json @@ -1,8 +1,8 @@ { "require": { "php": "^8.3", - "codeigniter/coding-standard": "^1.7", - "ergebnis/composer-normalize": "^2.28", + "codeigniter/coding-standard": "^1.9", + "ergebnis/composer-normalize": "^2.56", "friendsofphp/php-cs-fixer": "^3.76", "nexusphp/cs-config": "^3.26", "vimeo/psalm": "^7.11" From 7a6a0589a63b5c81f450632f2664036e67097024 Mon Sep 17 00:00:00 2001 From: Denny Septian Panggabean Date: Thu, 5 Nov 2026 23:34:18 +0700 Subject: [PATCH 4/9] fix: ignore composer php version --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index a306d25435eb..529c3cb03ff9 100644 --- a/composer.json +++ b/composer.json @@ -93,7 +93,7 @@ "CodeIgniter\\ComposerScripts::postUpdate" ], "post-autoload-dump": [ - "@php -r \"if (PHP_VERSION_ID >= 80500) { echo '@todo Remove \"--ignore-platform-req=php\" once deps catch up.', PHP_EOL; }\"", + "@php -r \"if (PHP_VERSION_ID >= 80600) { echo '@todo Remove \"--ignore-platform-req=php\" once deps catch up.', PHP_EOL; }\"", "@composer update --ansi --working-dir=utils --ignore-platform-req=php" ], "analyze": [ From 3b57ed0bae950c71917b34cb2b26d0baa5a97fe2 Mon Sep 17 00:00:00 2001 From: Denny Septian Panggabean Date: Wed, 11 Nov 2026 23:00:22 +0700 Subject: [PATCH 5/9] refactor: wrong double 8.5 --- .github/workflows/test-phpunit.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test-phpunit.yml b/.github/workflows/test-phpunit.yml index 0b63e3b37c9c..44234e901a66 100644 --- a/.github/workflows/test-phpunit.yml +++ b/.github/workflows/test-phpunit.yml @@ -129,7 +129,7 @@ jobs: - '8.4' - '8.5' include: - - php-version: '8.5' + - php-version: '8.6' composer-option: '--ignore-platform-req=php' uses: ./.github/workflows/reusable-phpunit-test.yml # @TODO Extract to codeigniter4/.github repo From ba457502b4e55eec74403f7237532e96cd442252 Mon Sep 17 00:00:00 2001 From: Denny Septian Panggabean Date: Fri, 20 Nov 2026 00:00:24 +0700 Subject: [PATCH 6/9] refactor: ignore utils in ComposerScripts --- composer.json | 3 +-- system/ComposerScripts.php | 9 +++++++++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index 529c3cb03ff9..1bbb6882d051 100644 --- a/composer.json +++ b/composer.json @@ -93,8 +93,7 @@ "CodeIgniter\\ComposerScripts::postUpdate" ], "post-autoload-dump": [ - "@php -r \"if (PHP_VERSION_ID >= 80600) { echo '@todo Remove \"--ignore-platform-req=php\" once deps catch up.', PHP_EOL; }\"", - "@composer update --ansi --working-dir=utils --ignore-platform-req=php" + "CodeIgniter\\ComposerScripts::postUtils" ], "analyze": [ "Composer\\Config::disableProcessTimeout", diff --git a/system/ComposerScripts.php b/system/ComposerScripts.php index 1794e7ffe9eb..9e6813fe9c22 100644 --- a/system/ComposerScripts.php +++ b/system/ComposerScripts.php @@ -171,4 +171,13 @@ private static function copyKintInitFiles(): void @copy($originDir . $kintInit, $targetDir . $kintInit); } } + + private static function postUtils(): void + { + if (PHP_VERSION_ID >= 80600) { + passthru('composer update --ansi --working-dir=utils --ignore-platform-req=php'); + } else { + passthru('composer update --ansi --working-dir=utils'); + } + } } From 49bee527f8381693ac4794f0d06fa0cb245952dd Mon Sep 17 00:00:00 2001 From: Denny Septian Panggabean Date: Tue, 24 Nov 2026 22:02:59 +0700 Subject: [PATCH 7/9] refactor: set public function --- composer.json | 1 + system/ComposerScripts.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 1bbb6882d051..b1c6afce11c7 100644 --- a/composer.json +++ b/composer.json @@ -93,6 +93,7 @@ "CodeIgniter\\ComposerScripts::postUpdate" ], "post-autoload-dump": [ + "@php -r \"if (PHP_VERSION_ID >= 80600) { echo '@todo Remove \"--ignore-platform-req=php\" once deps catch up.', PHP_EOL; }\"", "CodeIgniter\\ComposerScripts::postUtils" ], "analyze": [ diff --git a/system/ComposerScripts.php b/system/ComposerScripts.php index 9e6813fe9c22..e652c41d0d55 100644 --- a/system/ComposerScripts.php +++ b/system/ComposerScripts.php @@ -172,7 +172,7 @@ private static function copyKintInitFiles(): void } } - private static function postUtils(): void + public static function postUtils(): void { if (PHP_VERSION_ID >= 80600) { passthru('composer update --ansi --working-dir=utils --ignore-platform-req=php'); From 243798450dcb31fa377fb25e02e8ce12b5a8395e Mon Sep 17 00:00:00 2001 From: Denny Septian Panggabean Date: Sat, 28 Nov 2026 13:27:28 +0700 Subject: [PATCH 8/9] fix: include PHP 8.5 --- .github/workflows/test-phpunit.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test-phpunit.yml b/.github/workflows/test-phpunit.yml index 44234e901a66..a5248dbbb6bb 100644 --- a/.github/workflows/test-phpunit.yml +++ b/.github/workflows/test-phpunit.yml @@ -156,7 +156,7 @@ jobs: - '8.4' - '8.5' include: - - php-version: '8.5' + - php-version: '8.6' composer-option: '--ignore-platform-req=php' uses: ./.github/workflows/reusable-phpunit-test.yml # @TODO Extract to codeigniter4/.github repo From 9abcb841cca780d2f83cf895f11bec6915f9c0ae Mon Sep 17 00:00:00 2001 From: Denny Septian Panggabean Date: Sat, 28 Nov 2026 13:52:18 +0700 Subject: [PATCH 9/9] fix: pass Composer options to PHPUnit workflows --- .github/workflows/test-phpunit.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/test-phpunit.yml b/.github/workflows/test-phpunit.yml index a5248dbbb6bb..9a6a974f2bb7 100644 --- a/.github/workflows/test-phpunit.yml +++ b/.github/workflows/test-phpunit.yml @@ -67,6 +67,7 @@ jobs: with: job-name: Sanity Tests php-version: ${{ matrix.php-version }} + extra-composer-options: ${{ matrix.composer-option }} job-id: sanity-tests group-name: Others enable-artifact-upload: ${{ matrix.php-version == needs.coverage-php-version.outputs.version }} @@ -107,6 +108,7 @@ jobs: with: job-name: '' php-version: ${{ matrix.php-version }} + extra-composer-options: ${{ matrix.composer-option }} job-id: database-live-tests db-platform: ${{ matrix.db-platform }} mysql-version: ${{ matrix.mysql-version }} @@ -136,6 +138,7 @@ jobs: with: job-name: '' php-version: ${{ matrix.php-version }} + extra-composer-options: ${{ matrix.composer-option }} job-id: separate-process-tests group-name: SeparateProcess enable-artifact-upload: ${{ matrix.php-version == needs.coverage-php-version.outputs.version }} @@ -163,6 +166,7 @@ jobs: with: job-name: Cache Live Tests php-version: ${{ matrix.php-version }} + extra-composer-options: ${{ matrix.composer-option }} job-id: cache-live-tests group-name: CacheLive enable-artifact-upload: ${{ matrix.php-version == needs.coverage-php-version.outputs.version }}