kokororin / vscode-phpfmt

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

Whitespace is removed in catch block #103

Closed pittaya closed 1 year ago

pittaya commented 1 year ago

phpfmt removes whitespace between exception and variable.

Before:

<?php
try {
    foo();
} catch (\Exception $e) {
    bar();
}

After format:

<?php
try {
    foo();
} catch (\Exception$e) {
    bar();
}

Tested on: VSCode 1.77.0 & phpfmt extension 1.0.31