From 19608b3858675ace777bc530d97b0dd161a1e606 Mon Sep 17 00:00:00 2001 From: Dariusz Ruminski Date: Wed, 18 Dec 2024 16:35:11 +0100 Subject: [PATCH] enable rule on CI --- .php-cs-fixer.php-lowest.php | 7 +++++++ tests/Fixer/ControlStructure/YodaStyleFixerTest.php | 1 - 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.php-cs-fixer.php-lowest.php b/.php-cs-fixer.php-lowest.php index c7b02eacfc3..0b10a39d3e7 100644 --- a/.php-cs-fixer.php-lowest.php +++ b/.php-cs-fixer.php-lowest.php @@ -33,6 +33,13 @@ $config->setRules([ 'phpdoc_to_param_type' => true, 'phpdoc_to_return_type' => true, + 'phpdoc_to_property_type' => [ + 'types_map' => [ + 'TFixerInputConfig' => 'array', + 'TFixerComputedConfig' => 'array', + 'TFixer' => '\PhpCsFixer\AbstractFixer', + ], + ], ]); return $config; diff --git a/tests/Fixer/ControlStructure/YodaStyleFixerTest.php b/tests/Fixer/ControlStructure/YodaStyleFixerTest.php index b20621ff887..7e8a11c387a 100644 --- a/tests/Fixer/ControlStructure/YodaStyleFixerTest.php +++ b/tests/Fixer/ControlStructure/YodaStyleFixerTest.php @@ -15,7 +15,6 @@ namespace PhpCsFixer\Tests\Fixer\ControlStructure; use PhpCsFixer\ConfigurationException\InvalidFixerConfigurationException; -use PhpCsFixer\FixerDefinition\FixerDefinitionInterface; use PhpCsFixer\Tests\Test\AbstractFixerTestCase; /**