Skip to content

Different results aligning match #87

@driade

Description

@driade

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
        };
    }
}

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions