Closed Jeffrey04 closed 4 years ago
I am not able to replicate this issue but it seems similar to #17. I have not replicated this problem either. Like in the other issues if you run phpcbf from the comand line do you get correctly formated files or does it replace the file as above?
it would work if I do it from the command line though, not sure what went wrong
In order for me to try and replicate this I would need to know what "/home/jeffrey04/.phpenv/shims/phpcs",
has that is different from your global phpcs. It would be good to also have the .phpcs.xml file you are using.
sorry I would have to close the ticket as I switched to another extension that works with the same setup
I got the same problem and found that I had set the path to phpcs as "phpsab.executablePathCBF" 😂 After setting correct phpcbf path, it worked properly.
My settings
When I was editing this file
saving it causing it to be replaced with this
disabling this extension will revert this behaviour. I am running vscode 1.46 and extension version is 0.0.5, while phpcbf is installed through composer with this command
composer global require "squizlabs/php_codesniffer=*"
and it is at version