kokororin / vscode-phpfmt

Integrates phpfmt into VS Code
https://marketplace.visualstudio.com/items?itemName=kokororin.vscode-phpfmt
BSD 3-Clause "New" or "Revised" License
129 stars 30 forks source link

Keywords get replaced incorectly #118

Closed hudecv closed 10 months ago

hudecv commented 10 months ago

Dear author,

keywords are incorrectly identified in places which do not represent them. Example:

Before:

ICollection::OR

After:

ICollection:: or <- mind the space

The lowercase replacement can be mitigated by disabling the pass "PSR2KeywordsLowerCase", byt the extra whitespace is still being added.

Could you fix that?

driade commented 10 months ago

Hi @hudecv, fixed.

May you please run the command "phpfmt: Upgrade fmt.phar ot fmt.stub.php" and check?

Thanks.

hudecv commented 10 months ago

Hey @driade,

works like a charm. Great stuff.

Thanks for such a quick reply