PHP 8.1 not supported?
nexxai opened this issue · comments
I tried looking through the code of the core php-cs-fixer and can't figure out where it's failing (unless it's an issue with the .phar that's being downloaded as part of the extension from https://cs.symfony.com/download/php-cs-fixer-v3.phar as described in this extension's /download-phar.js file) but I'm getting this when using PHP 8.1:
PHP needs to be a minimum version of PHP 7.1.3 and maximum version of PHP 8.0.*.
Current PHP version: 8.1.4.
To ignore this requirement please set `PHP_CS_FIXER_IGNORE_ENV`.
I @ console.ts:137
I'm not sure where to set the environment variable since this is running inside a VS Code instance, not a terminal.
Nevermind, I'm an idiot. I didn't realize it was using my local copy of php-cs-fixer.
I just did a composer global update
and it fixed the problem.