2021-11-17 16:45:49 +01:00
|
|
|
<?php
|
|
|
|
|
2024-05-24 22:32:01 +02:00
|
|
|
use PhpCsFixer\Runner\Parallel\ParallelConfigFactory;
|
|
|
|
use TYPO3\CodingStandards\CsFixerConfig;
|
|
|
|
|
|
|
|
$config = CsFixerConfig::create();
|
2024-12-30 15:07:23 +01:00
|
|
|
// 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']],
|
|
|
|
]
|
|
|
|
);
|
|
|
|
|
2024-05-24 22:32:01 +02:00
|
|
|
// @TODO 4.0 no need to call this manually
|
|
|
|
$config->setParallelConfig(ParallelConfigFactory::detect());
|
2021-11-17 16:45:49 +01:00
|
|
|
$config->getFinder()->in('Classes')->in('Configuration')->in('Tests');
|
|
|
|
return $config;
|