From d7bd8907897b3305bede2b06cd3980ff3e608b34 Mon Sep 17 00:00:00 2001 From: Matthias Vogel Date: Thu, 26 Nov 2026 20:26:09 +0000 Subject: [PATCH] [TASK] allow and test PHP 8.6 - allow PHP ~8.6.0 and add 8.6 to the CI matrix - use webdevops/php-dev directly as CI image (pluswerk/php-dev has no PHP 8.6 image and only adds tools the CI does not need) - rector.php: remove cacheClass(), it was removed in rector 2.8 (CI installs the latest rector, FileCacheStorage is the default anyway) --- .github/workflows/main.yml | 4 ++-- composer.json | 2 +- rector.php | 2 -- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 426523c..c6fefae 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -4,12 +4,12 @@ jobs: test: runs-on: ubuntu-latest container: - image: pluswerk/php-dev:nginx-${{ matrix.php }} + image: webdevops/php-dev:${{ matrix.php }} options: -t strategy: fail-fast: false matrix: - php: ['8.2', '8.3', '8.4', '8.5'] + php: ['8.2', '8.3', '8.4', '8.5', '8.6'] name: 'PHP ${{ matrix.php }}' steps: - run: git config --global --add safe.directory /__w/ShellCommandBuilder/ShellCommandBuilder diff --git a/composer.json b/composer.json index 30faf0c..331f89a 100644 --- a/composer.json +++ b/composer.json @@ -10,7 +10,7 @@ } ], "require": { - "php": "~8.2.0 || ~8.3.0 || ~8.4.0 || ~8.5.0", + "php": "~8.2.0 || ~8.3.0 || ~8.4.0 || ~8.5.0 || ~8.6.0", "ext-json": "*" }, "require-dev": { diff --git a/rector.php b/rector.php index 1dd8470..a89abf9 100644 --- a/rector.php +++ b/rector.php @@ -3,14 +3,12 @@ declare(strict_types=1); use PLUS\GrumPHPConfig\RectorSettings; -use Rector\Caching\ValueObject\Storage\FileCacheStorage; use Rector\Config\RectorConfig; return static function (RectorConfig $rectorConfig): void { $rectorConfig->parallel(); $rectorConfig->importNames(); $rectorConfig->importShortClasses(); - $rectorConfig->cacheClass(FileCacheStorage::class); $rectorConfig->cacheDirectory('./var/cache/rector'); $rectorConfig->paths(