diff --git a/src/Configuration/Defaults/CommonAdditionalRules.php b/src/Configuration/Defaults/CommonAdditionalRules.php index f916892..69f9298 100644 --- a/src/Configuration/Defaults/CommonAdditionalRules.php +++ b/src/Configuration/Defaults/CommonAdditionalRules.php @@ -8,6 +8,7 @@ use Blumilk\Codestyle\Fixers\BinaryOperatorSpacesFixer; use Blumilk\Codestyle\Fixers\DoubleQuoteFixer; use Blumilk\Codestyle\Fixers\NoSpacesAfterFunctionNameFixer; +use PHP_CodeSniffer\Standards\PSR12\Sniffs\Operators\OperatorSpacingSniff; use PhpCsFixer\Fixer\CastNotation\CastSpacesFixer; use PhpCsFixer\Fixer\ControlStructure\TrailingCommaInMultilineFixer; use PhpCsFixer\Fixer\FunctionNotation\UseArrowFunctionsFixer; @@ -44,6 +45,7 @@ class CommonAdditionalRules extends Rules implements AdditionalRules ], ], NoExtraBlankLinesFixer::class => null, + OperatorSpacingSniff::class => null, TrailingCommaInMultilineFixer::class => [ "elements" => [ "arrays", diff --git a/tests/codestyle/fixtures/operatorSpacing/actual.php b/tests/codestyle/fixtures/operatorSpacing/actual.php new file mode 100644 index 0000000..629050a --- /dev/null +++ b/tests/codestyle/fixtures/operatorSpacing/actual.php @@ -0,0 +1,11 @@ + null, + OperatorSpacingSniff::class => null, TrailingCommaInMultilineFixer::class => [ "elements" => [ "arrays", @@ -99,6 +101,7 @@ public function testFilteringAdditionalRulesConfiguration(): void ], ], NoExtraBlankLinesFixer::class => null, + OperatorSpacingSniff::class => null, TrailingCommaInMultilineFixer::class => [ "elements" => [ "arrays", @@ -142,6 +145,7 @@ public function testExtendingAdditionalRulesConfiguration(): void ], ], NoExtraBlankLinesFixer::class => null, + OperatorSpacingSniff::class => null, TrailingCommaInMultilineFixer::class => [ "elements" => [ "arrays", @@ -193,6 +197,7 @@ public function testExtendingWithOptionsAdditionalRulesConfiguration(): void ], ], NoExtraBlankLinesFixer::class => null, + OperatorSpacingSniff::class => null, TrailingCommaInMultilineFixer::class => [ "elements" => [ "arrays",