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

conts not formatted at all #99

Closed daidaiworm closed 1 year ago

daidaiworm commented 1 year ago
<?php

class NullNothig
{
    const age =125;
                const A =5;
const a =6;
    const AGGGD=4;
    const ABC=18;
    const AGENAME=666;

    public function age()
    {}
    function name_user(){}
}

it should be formatted like this.


<?php

class NullNothig
{
    const AGE     = 125;
    const A       = 5;
    const A       = 6;
    const AGGGD   = 4;
    const ABC     = 18;
    const AGENAME = 666;

    public function age()
    {}
    public function nameUser()
    {}
}
lucasferreira commented 1 year ago

Hi @daidaiworm

This is because this extension are now using and old version of PHPFMT project, I've made some PR to update PHPFMT package AND get oficial support to PHP8 https://github.com/kokororin/vscode-phpfmt/pull/101