From 6f481140d05931b12a25dab13e080d0777dd1c52 Mon Sep 17 00:00:00 2001 From: Denny Septian Panggabean Date: Thu, 29 Oct 2026 21:57:46 +0700 Subject: [PATCH 1/7] 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 4c1d9378fc17e69ef6c5d502c5fbbad4df0b2eb8 Mon Sep 17 00:00:00 2001 From: Denny Septian Panggabean Date: Thu, 29 Oct 2026 22:01:56 +0700 Subject: [PATCH 2/7] chore: composer ignore platform --- composer.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 6a25c56e3fb9..81504a9dc6e4 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 506fd7c857e4a31d86f2d9eb148bb738aeb78483 Mon Sep 17 00:00:00 2001 From: Denny Septian Panggabean Date: Tue, 3 Nov 2026 20:45:45 +0700 Subject: [PATCH 3/7] 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 61bf7fc03c011b9f398aba1a210038069eef0893 Mon Sep 17 00:00:00 2001 From: Denny Septian Panggabean Date: Thu, 5 Nov 2026 23:34:18 +0700 Subject: [PATCH 4/7] fix: ignore composer php version --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 81504a9dc6e4..f51d41624011 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 82894219b8a8bb6023db979677994be8eb480160 Mon Sep 17 00:00:00 2001 From: Denny Septian Panggabean Date: Wed, 11 Nov 2026 23:00:22 +0700 Subject: [PATCH 5/7] 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 4728500d235f3180bf7761ded1c29cc539eebfc8 Mon Sep 17 00:00:00 2001 From: Denny Septian Panggabean Date: Fri, 20 Nov 2026 00:00:24 +0700 Subject: [PATCH 6/7] 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 f51d41624011..3d7007e3a08f 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 c16f6fe163e11dbd59b63fecac49763960db0783 Mon Sep 17 00:00:00 2001 From: Denny Septian Panggabean Date: Tue, 24 Nov 2026 22:02:59 +0700 Subject: [PATCH 7/7] 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 3d7007e3a08f..927a1e1724e0 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');