Open pvettori opened 1 month ago
@pvettori Have you tried and confirm this works on windows then?
I am on macs and if even remove that line, it still works.
I have updated. lets see if it works for you.
I have updated. lets see if it works for you.
Thank you, it now seems to be working on both Windows and Ubuntu. I see that you have updated the php-cs-fixer source file and it now supports php 8.3 by default, that is maybe the reason you find that it works even if you remove that line.
I doug a bit deeper and found out from documentation (child_process.execFile()) that a better solution would be to write line (now) 23 as follows:
opts.env = { ...process.env, PHP_CS_FIXER_IGNORE_ENV: 1 }
VsCode PHP CS Fixer is one of my most used VSCode extensions. I now have installed php 8.3 on my system, but the current version of uses a builtin php-cs-fixer that allows php 8.2 as maximum version. I know there is a somewhat "hidden" configuration setting called "ignoreEnv" that allows running the fixer with the env option PHP_CS_FIXER_IGNORE_ENV = 1, but it actually does not work properly.
There is an easy fix to this issue which consists in changing the line 22 of "extension.js" to something like this:
I hope you can integrate this fix.