phpfmt8
phpfmt8 copied to clipboard
Different results aligning match
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
};
}
}