Method chaining MUST be properly indented. Method chaining with different levels of indentation is not supported.
--- Original
+++ New
<?php
$user->setEmail('voff.web@gmail.com')
- ->setPassword('233434');
+ ->setPassword('233434');The rule is part of the following rule set:
- Fixer class: PhpCsFixer\Fixer\Whitespace\MethodChainingIndentationFixer
- Test class: PhpCsFixer\Tests\Fixer\Whitespace\MethodChainingIndentationFixerTest
The test class defines officially supported behaviour. Each test case is a part of our backward compatibility promise.