junstyle / vscode-php-cs-fixer

PHP CS Fixer extension for VS Code
https://marketplace.visualstudio.com/items?itemName=junstyle.php-cs-fixer
MIT License
357 stars 45 forks source link

PHP version 8.2 #197

Closed Khant-Nyar closed 1 year ago

Khant-Nyar commented 1 year ago

i am face with cs-fixer error with php version ,my current php version is 8.2.1 and cs-fixer doen't support that ? i follow to ignore with PHP_CS_FIXER_IGNORE_ENV but i can't

./vendor/bin/php-cs-fixer fix -vvv --dry-run --show-progress=dots PHP needs to be a minimum version of PHP 7.4.0 and maximum version of PHP 8.1.*. Current PHP version: 8.2.1. To ignore this requirement please set PHP_CS_FIXER_IGNORE_ENV. If you use PHP version higher than supported, you may experience code modified in a wrong way. Please report such cases at https://github.com/PHP-CS-Fixer/PHP-CS-Fixer .

junstyle commented 1 year ago

add option: ignorePHPVersion for PHP_CS_FIXER_IGNORE_ENV

https://github.com/junstyle/vscode-php-cs-fixer/commit/2ba2b94644a8bf823030f2f83e58e4d517f5cf88