3

In my php-cs-fixer.php I have this line:

'binary_operator_spaces' => ['align_equals' => false, 'align_double_arrow' => true],

And it is giving me an error saying:

The options "align_double_arrow", "align_equals" do not exist. Defined options are: "default", "operators". 

Could you help with using operators and default to achieve the same goal?

unitSphere
  • 241
  • 3
  • 17

1 Answers1

6

According to upgrade guide you should use operators to choose needed strategy for each operator.

So in your case config will look like following:

'binary_operator_spaces' => [
    'operators' => [
        '=' => 'no_space',
        '=>' => 'align',
    ]
]

For more information check doc for binary_operator_spaces rule.

greeflas
  • 825
  • 1
  • 8
  • 20