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",