When reporting an issue (bug) please provide the following information:
$ php -v):=> 7.2.6
$ php-cs-fixer -V):=> 2.12.1
=> vendor/bin/php-cs-fixer fix
<?php
declare(strict_types=1);
$finder = PhpCsFixer\Finder::create()
->in(__DIR__)
->exclude('vendor');
return PhpCsFixer\Config::create()
->setFinder($finder)
->setRules([
'array_indentation' => true,
]);
<?php
[
$test
? [
123,
]
: [
321,
],
];
<?php
[
$test
? [
123,
]
: [
321,
],
];
Expected no changes.
Thanks for the report @EvgenyOrekhov , looks buggy indeed :(
Can you propose a fix? That would be great !
I confirm the bug and started to work on a fix. I hope to submit it soon.
It was harder than expected but this should be fixed by #4654.