We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Two passes may be required if we use both ArraySyntaxFixer and SingleSpaceAroundConstructFixer.
ArraySyntaxFixer
SingleSpaceAroundConstructFixer
PHP CS Fixer 3.26.1 Crank Cake by Fabien Potencier and Dariusz Ruminski. PHP runtime: 7.4.33
<?php $config = new PhpCsFixer\Config(); return $config ->setRules([ 'array_syntax' => true, 'single_space_around_construct' => true, ]) ->setFinder(PhpCsFixer\Finder::create() ->in(__DIR__) ) ;
Let's assume we have this file:
<?php function foo() { return array // bar ( 1, ); }
At the first pass, ArraySyntaxFixer changes it to
<?php function foo() { return // bar [ 1, ]; }
(please remark that there are two spaces before the comment)
At the second pass, SingleSpaceAroundConstructFixer changes it to
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Bug report
Description
Two passes may be required if we use both
ArraySyntaxFixer
andSingleSpaceAroundConstructFixer
.Runtime version
Configuration file
Code snippet that reproduces the problem
Let's assume we have this file:
At the first pass,
ArraySyntaxFixer
changes it to(please remark that there are two spaces before the comment)
At the second pass,
SingleSpaceAroundConstructFixer
changes it toThe text was updated successfully, but these errors were encountered: