mirror of
https://github.com/FriendsOfTYPO3/tea.git
synced 2025-01-08 08:26:10 +01:00
[BUGFIX] Avoid unsetting almost all PHP-CS-Fixes rules (#1535)
Followup to #1533
This commit is contained in:
parent
6c264c66a4
commit
318f97844e
1 changed files with 5 additions and 5 deletions
|
@ -4,15 +4,15 @@ use PhpCsFixer\Runner\Parallel\ParallelConfigFactory;
|
||||||
use TYPO3\CodingStandards\CsFixerConfig;
|
use TYPO3\CodingStandards\CsFixerConfig;
|
||||||
|
|
||||||
$config = CsFixerConfig::create();
|
$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.
|
// 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
|
// @see https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/8337
|
||||||
$config->setRules(
|
$rules = $config->getRules();
|
||||||
[
|
$rules['php_unit_test_case_static_method_calls'] = ['call_type' => 'self', 'methods' => ['createStub' => 'this']];
|
||||||
'php_unit_test_case_static_method_calls' => ['call_type' => 'self', 'methods' => ['createStub' => 'this']],
|
$config->setRules($rules);
|
||||||
]
|
|
||||||
);
|
|
||||||
|
|
||||||
// @TODO 4.0 no need to call this manually
|
// @TODO 4.0 no need to call this manually
|
||||||
$config->setParallelConfig(ParallelConfigFactory::detect());
|
$config->setParallelConfig(ParallelConfigFactory::detect());
|
||||||
|
|
||||||
$config->getFinder()->in('Classes')->in('Configuration')->in('Tests');
|
$config->getFinder()->in('Classes')->in('Configuration')->in('Tests');
|
||||||
return $config;
|
return $config;
|
||||||
|
|
Loading…
Reference in a new issue