You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
opts.env={PHP_CS_FIXER_IGNORE_ENV: 1};
I hope you can integrate this fix.
The text was updated successfully, but these errors were encountered:
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:
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.
The text was updated successfully, but these errors were encountered: