From b7d4da87e954b56c4a9677b16c49cac967741744 Mon Sep 17 00:00:00 2001 From: Christopher Georg Date: Sat, 20 Dec 2025 13:37:09 +0100 Subject: [PATCH 1/2] ci: fix deprecation for PhpCsFixer --- .github/workflows/ci.yml | 1 - .php-cs-fixer.php | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1838cdb..44eafea 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -36,7 +36,6 @@ jobs: runs-on: ubuntu-latest env: php-version: 8.4 - PHP_CS_FIXER_IGNORE_ENV: 1 steps: - name: "Setup PHP" uses: shivammathur/setup-php@v2 diff --git a/.php-cs-fixer.php b/.php-cs-fixer.php index f22e0df..be6679b 100644 --- a/.php-cs-fixer.php +++ b/.php-cs-fixer.php @@ -10,6 +10,7 @@ '@Symfony' => true, 'no_superfluous_phpdoc_tags' => false, 'phpdoc_to_comment' => ['ignored_tags' => ['var']], // phpstan errors pops up without this + 'unsupportedPhpVersionAllowed' => true, ]) ->setFinder($finder) ; From e341f4a66d74267825fe9d426b387d120eca4f45 Mon Sep 17 00:00:00 2001 From: Christopher Georg Date: Sat, 20 Dec 2025 13:42:41 +0100 Subject: [PATCH 2/2] ci: fix deprecation for PhpCsFixer --- .github/workflows/ci.yml | 2 +- .php-cs-fixer.php | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 44eafea..81a7ce0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -52,7 +52,7 @@ jobs: composer-options: "--optimize-autoloader" - name: "Run PHP-CS-Fixer" - run: vendor/bin/php-cs-fixer fix -v --dry-run --using-cache=no --format=checkstyle | cs2pr + run: vendor/bin/php-cs-fixer fix -v --dry-run --allow-unsupported-php-version=yes --using-cache=no --format=checkstyle | cs2pr phpunit: name: PHPUnit (PHP ${{ matrix.php }}) (Symfony ${{ matrix.sf_version }}) diff --git a/.php-cs-fixer.php b/.php-cs-fixer.php index be6679b..f22e0df 100644 --- a/.php-cs-fixer.php +++ b/.php-cs-fixer.php @@ -10,7 +10,6 @@ '@Symfony' => true, 'no_superfluous_phpdoc_tags' => false, 'phpdoc_to_comment' => ['ignored_tags' => ['var']], // phpstan errors pops up without this - 'unsupportedPhpVersionAllowed' => true, ]) ->setFinder($finder) ;