phpfmt8 icon indicating copy to clipboard operation
phpfmt8 copied to clipboard

Different results aligning match

Open driade opened this issue 1 year ago • 0 comments

Depending on the "use" of the class the alignment behaves different

<?php

class Test
{
    use T1, T2, T3, T3;

    private function foo()
    {
        match ($reason) {
            1 => 'ko_not_found',
            2       => 'ko_rejected_time',
            default => null
        };
    }
}
<?php

class Test
{
    use T1, T2;

    private function foo()
    {
        match ($reason) {
            1       => 'ko_not_found',
            2       => 'ko_rejected_time',
            default => null
        };
    }
}
<?php

class Test
{
    use T1;

    private function foo()
    {
        match ($reason) {
            1 => 'ko_not_found',
            2 => 'ko_rejected_time',
            default => null
        };
    }
}

driade avatar Oct 30 '24 17:10 driade