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

Error on formatting anonymous class #134

Closed d-enk closed 3 months ago

d-enk commented 7 months ago
<?php

$obj = (new class
{
    private $field;

    public function method(): void
    {
    }
});

Different behavior when there is a $field, class (), public

driade commented 7 months ago

Hi, I'm working on it. This bug is produced by a recent update to prevent other bug.

driade commented 3 months ago

Hi @d-enk this should be fixed. May you please confirm? Thanks.

d-enk commented 3 months ago

confirmed) thanks