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

Heredoc in Property param format braking #123

Closed ili101 closed 9 months ago

ili101 commented 9 months ago

Before:

<?php

namespace App\Entity;

use ApiPlatform\Metadata\ApiProperty;

class MyClass
{
    #[ApiProperty(
        description: <<<UwU
            text text.

            * text text.
            * text text.
            UwU,
    )]
    public string $myProperty;
}

After:

<?php

namespace App\Entity;

use ApiPlatform\Metadata\ApiProperty;

class MyClass
{
    #[ApiProperty(
        description: <<<UwU
                    text text.

            * text text.
            * text text.
                    UwU,
    )]
        publicstring$myProperty;
}

Expected no change

driade commented 9 months ago

Hi @ili101 , thanks, it's fixed