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..44234e901a66 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.6' + 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: diff --git a/composer.json b/composer.json index 6a25c56e3fb9..927a1e1724e0 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 >= 80600) { echo '@todo Remove \"--ignore-platform-req=php\" once deps catch up.', PHP_EOL; }\"", + "CodeIgniter\\ComposerScripts::postUtils" ], "analyze": [ "Composer\\Config::disableProcessTimeout", diff --git a/system/ComposerScripts.php b/system/ComposerScripts.php index 1794e7ffe9eb..e652c41d0d55 100644 --- a/system/ComposerScripts.php +++ b/system/ComposerScripts.php @@ -171,4 +171,13 @@ private static function copyKintInitFiles(): void @copy($originDir . $kintInit, $targetDir . $kintInit); } } + + public 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'); + } + } } 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"