From a46229017655d5555e8219893c056131245a2b6b Mon Sep 17 00:00:00 2001 From: Filippo Tessarotto Date: Wed, 25 Sep 2024 08:11:19 +0200 Subject: [PATCH] Add PHP 8.4 support, drop PHP 8.2 (#34) --- .github/workflows/ci.yml | 10 +++++----- composer.json | 2 +- tests/FinalInternalClassFixerTest.php | 2 -- 3 files changed, 6 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 81fca37..e0cf67f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,7 +17,7 @@ jobs: strategy: matrix: php-version: - - "8.2" + - "8.3" steps: - uses: "actions/checkout@v4" @@ -40,11 +40,11 @@ jobs: strategy: matrix: php-version: - - "8.3" + - "8.4" code-coverage: - "none" include: - - php-version: "8.2" + - php-version: "8.3" code-coverage: "pcov" steps: @@ -70,7 +70,7 @@ jobs: strategy: matrix: php-version: - - "8.2" + - "8.3" steps: - uses: "actions/checkout@v4" @@ -89,7 +89,7 @@ jobs: strategy: matrix: php-version: - - "8.2" + - "8.3" steps: - uses: "actions/checkout@v4" diff --git a/composer.json b/composer.json index dcb76c9..f8d4547 100644 --- a/composer.json +++ b/composer.json @@ -10,7 +10,7 @@ } ], "require": { - "php": "~8.2.0 || ~8.3.0", + "php": "~8.3.0 || ~8.4.0", "ext-mbstring": "*", "ext-tokenizer": "*", "friendsofphp/php-cs-fixer": "^3.64.0" diff --git a/tests/FinalInternalClassFixerTest.php b/tests/FinalInternalClassFixerTest.php index 522a103..a476aae 100644 --- a/tests/FinalInternalClassFixerTest.php +++ b/tests/FinalInternalClassFixerTest.php @@ -6,7 +6,6 @@ use PHPUnit\Framework\Attributes\CoversClass; use PHPUnit\Framework\Attributes\DataProvider; -use PHPUnit\Framework\Attributes\RequiresPhp; use SlamCsFixer\FinalInternalClassFixer; #[CoversClass(FinalInternalClassFixer::class)] @@ -69,7 +68,6 @@ public static function provideCases(): array ]; } - #[RequiresPhp('8.2')] #[DataProvider('provide82Cases')] public function test82Fix(string $expected, ?string $input = null): void {