vscode-php-cs-fixer icon indicating copy to clipboard operation
vscode-php-cs-fixer copied to clipboard

It replace class names some times

Open koekaverna opened this issue 4 years ago • 3 comments

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
    }
}

koekaverna avatar Mar 31 '20 07:03 koekaverna

same. there is a class of Indication and IndicationService. formatting can replace the name sometimes

artelkr avatar Apr 29 '20 09:04 artelkr

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 {.

jasonvarga avatar Mar 11 '21 16:03 jasonvarga

Me too

Yurunsoft avatar Mar 23 '21 05:03 Yurunsoft