I installed VS Code recently on a new PC and began to get this error.
It was very weird that all the extensions were not installed directly but were copied from my laptop, and on my laptop the VS Code worked really well.
I searched many times and also tried to fix it according to the search results, while most of them did not work. One guy said we could run the php-cs-fixer.phar directly and I did it as below:
C:\Windows\system32>cd C:\Users\NeilZhang\.vscode\extensions C:\Users\NeilZhang\.vscode\extensions>php-cs-fixer.phar C:\Users\NeilZhang\.vscode\extensions>cd "C:\Program Files\PHP7" C:\Program Files\PHP7>php.exe php-cs-fixer.phar PHP needs to be a minimum version of PHP 5.6.0 and maximum version of PHP 7.2.*. C:\Program Files\PHP7>php -v PHP 7.3.0 (cli) (built: Dec 6 2018 01:54:16) ( NTS MSVC15 (Visual C++ 2017) x64 ) Copyright (c) 1997-2018 The PHP Group Zend Engine v3.3.0-dev, Copyright (c) 1998-2018 Zend Technologies
So the reason was clear now.
I installed the new PC and new PHP7, and the version was latest 7.3.9, which was not supported by php-cs-fixer.phar.
I changed the PHP7.3 to PHP7.2 and such error disappeared.
Have to say, the error message 'php general error' did not help me.