
no_useless_concat_operator
¶There should not be useless concat operations.
juggle_simple_strings
¶Allow for simple string quote juggling if it results in more concat-operations merges.
Allowed types: bool
Default value: false
With configuration: ['juggle_simple_strings' => true]
.
--- Original
+++ New
<?php
-$a = 'a'."b";
+$a = "ab";
The rule is part of the following rule sets:
Using the @PhpCsFixer rule set will enable the no_useless_concat_operator
rule with the default config.
Using the @Symfony rule set will enable the no_useless_concat_operator
rule with the default config.