vscode-php-cs-fixer
vscode-php-cs-fixer copied to clipboard
It replace class names some times
When I work with two tabs with class names like: MyClass and MyClassTest sometime it replace one name by another at class defenition
my settings:
{
"php.suggest.basic": false,
"editor.quickSuggestions": {
"comments": true
},
"[php]": {
"editor.defaultFormatter": "junstyle.php-cs-fixer"
},
"editor.formatOnSave": true,
"files.autoSave": "onFocusChange",
"git.autofetch": true,
"diffEditor.ignoreTrimWhitespace": false,
"diffEditor.renderSideBySide": true,
"editor.largeFileOptimizations": false,
"php-cs-fixer.allowRisky": true,
"php-cs-fixer.documentFormattingProvider": true,
"files.watcherExclude": {
"**/node_modules/*/**": true,
"**/assets/*/**": true,
"**/var/*/**": true
}
}
same. there is a class of Indication
and IndicationService
. formatting can replace the name sometimes
I've been running into this lately too.
I noticed that the classes don't even really need to be related or share any part of the name.
I had one pane open with a web.php
file that wasn't even a class. I had an Asset
class open in the other tab.
The class Asset {
was renamed to class web {
.
Me too