-
Support questionMy code looks this: echo "blahblahblah",
"yaddayaddayadda",
"etcetcetc"; Php-cs-fixer wants to change it to: echo "blahblahblah",
"yaddayaddayadda",
"etcetcetc"; I cannot figure out what rule is causing this change. Is there a way to stop it from happening? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
Did you try using dots |
Beta Was this translation helpful? Give feedback.
-
I hadn't. It appears that might work. Technically speaking, I think using the commas is not a concatenation, although practically speaking the they might yield the same results. I would guess that commas might be more efficient (you just need to send each string to stdout, whereas with periods you would have to concatenate first before sending the string). Also worth noting - V2 did not make this change but V3 does. At any rate, thank you for the suggestion. I would still be interested in knowing if there is a rule that controls this behavior. |
Beta Was this translation helpful? Give feedback.
-
The rule that is causing this change is I believe this is some kind of side effect that can be considered as a bug. I am not sure if Fixer supports commas used like this. |
Beta Was this translation helpful? Give feedback.
The rule that is causing this change is
braces
. You can see it when you run Fixer with--verbose
option, which prints applied fixers.I believe this is some kind of side effect that can be considered as a bug. I am not sure if Fixer supports commas used like this.