Closed murugappanrm closed 1 year ago
Hi, Is there any resolution to the problem? This bug is making the usefulness of VS Code Editor to become less.
The current version of phpfmt does not support class property type hinting. You will need to use a different PHP formatter. I recommend trying PHP Tools extension by DEVSENSE, it provides basic code formatting, IntelliSense and some more features.
Just add "phpfmt.psr2": false,
in your settings.json
file
@cobraprojects I have set the setting as in the attached screen cap. Is that ok?
Hi, Thank you for the update. I did that already but the only trouble is Devsense seems to have lots of problems with Codeigniter 4. So sad.
Regards from, Murugappan Ramanathan
On Monday, 13 June 2022 at 10:14:13 am MYT, João Pedro Holanda Neves ***@***.***> wrote:
The current version of phpfmt does not support class property type hinting. You will need to use a different PHP formatter. I recommend trying PHP Tools extension by DEVSENSE, it provides basic code formation, IntelliSense and some more features.
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>
For me issue was resolved by adding this to settings.json:
"phpfmt.exclude": [
"PSR2ModifierVisibilityStaticOrder"
]
No need to disable whole PSR2 formatting.
@TysiacSzescset after making changes as you suggested, it seems to be working now. Thank you.
Hi folks,
I've made some PR to update PHPFMT package to a fresh version AND get oficial support to PHP8 https://github.com/kokororin/vscode-phpfmt/pull/101
This is my code:
After saving the file, the formatter formats the$test property wrongly: