Open Digitalone1 opened 8 months ago
Hi, is there any plan to release something soon about this ?
Some fo the 8.3 syntax changes are not yet supported by php-prettier.
Bump
If I set phpVersion
to 8.3
in the config like this:
"plugins": ["@prettier/plugin-php"],
"phpVersion": "8.3",
"overrides": [
{
"files": "*.php",
"options": {
"singleQuote": true
}
}
]
then the whole "run on save" feature does not work in PhpStorm.
Along with static typed constants, we prettier does not read 8.3 as a valid version: https://github.com/prettier/plugin-php/blob/46b7ba998afac4affa8b39c0c0054618ee049ab6/src/options.mjs#L10-L26
The upstream parser library doesn't have support for PHP 8(.3) yet. See related ticket. This specific issue is tracked here.
Is there a plan to support new 8.3 version? The following code is correct, but prettier says not.