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?
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.