From 1766a46f988b5fd4968c4b664e4690cf94829a5f Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 30 Dec 2024 14:07:23 +0000 Subject: [PATCH] [Dependabot] Update friendsofphp/php-cs-fixer requirement from 3.65.0 to 3.66.0 (#1533) * [Dependabot] Update friendsofphp/php-cs-fixer requirement Updates the requirements on [friendsofphp/php-cs-fixer](https://github.com/PHP-CS-Fixer/PHP-CS-Fixer) to permit the latest version. - [Release notes](https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/releases) - [Changelog](https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/master/CHANGELOG.md) - [Commits](https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/compare/v3.65.0...v3.66.0) --- updated-dependencies: - dependency-name: friendsofphp/php-cs-fixer dependency-type: direct:development ... Signed-off-by: dependabot[bot] * [BUGFIX] Make PHP-CS-Fixer >= 3.66 compatible with PHPUnit 9.x @see https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/8337 --------- Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Oliver Klee --- .php-cs-fixer.php | 8 ++++++++ composer.json | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/.php-cs-fixer.php b/.php-cs-fixer.php index 48a103a..f7fb1fe 100644 --- a/.php-cs-fixer.php +++ b/.php-cs-fixer.php @@ -4,6 +4,14 @@ use PhpCsFixer\Runner\Parallel\ParallelConfigFactory; use TYPO3\CodingStandards\CsFixerConfig; $config = CsFixerConfig::create(); +// This is required as long as we are on PHPUnit 9.x. It can be removed after the switch to PHPUnit 10.x. +// @see https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/8337 +$config->setRules( + [ + 'php_unit_test_case_static_method_calls' => ['call_type' => 'self', 'methods' => ['createStub' => 'this']], + ] +); + // @TODO 4.0 no need to call this manually $config->setParallelConfig(ParallelConfigFactory::detect()); $config->getFinder()->in('Classes')->in('Configuration')->in('Tests'); diff --git a/composer.json b/composer.json index 9db1bc7..4c57c21 100644 --- a/composer.json +++ b/composer.json @@ -48,7 +48,7 @@ }, "require-dev": { "ergebnis/composer-normalize": "2.45.0", - "friendsofphp/php-cs-fixer": "3.65.0", + "friendsofphp/php-cs-fixer": "3.66.0", "helmich/typo3-typoscript-lint": "3.1.1", "icanhazstring/composer-unused": "0.8.11", "php-parallel-lint/php-parallel-lint": "1.4.0",