mirror of
https://github.com/FriendsOfTYPO3/tea.git
synced 2025-01-09 04:06:11 +01:00
1766a46f98
* [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] <support@github.com> * [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] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Oliver Klee <typo3-coding@oliverklee.de>
18 lines
651 B
PHP
18 lines
651 B
PHP
<?php
|
|
|
|
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');
|
|
return $config;
|