File tree Expand file tree Collapse file tree 1 file changed +11
-11
lines changed Expand file tree Collapse file tree 1 file changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -553,7 +553,7 @@ class ClassName
553
553
public function aVeryLongMethodName(
554
554
ClassTypeHint $arg1,
555
555
& $arg2,
556
- array $arg3 = []
556
+ array $arg3 = [],
557
557
) {
558
558
// method body
559
559
}
@@ -582,7 +582,7 @@ class ReturnTypeVariations
582
582
public function anotherFunction(
583
583
string $foo,
584
584
string $bar,
585
- int $baz
585
+ int $baz,
586
586
): string {
587
587
return 'foo';
588
588
}
@@ -698,7 +698,7 @@ array) does not constitute splitting the argument list itself.
698
698
$foo->bar(
699
699
$longArgument,
700
700
$longerArgument,
701
- $muchLongerArgument
701
+ $muchLongerArgument,
702
702
);
703
703
```
704
704
@@ -1065,43 +1065,43 @@ variable lists split across multiple lines.
1065
1065
$longArgs_noVars = function (
1066
1066
$longArgument,
1067
1067
$longerArgument,
1068
- $muchLongerArgument
1068
+ $muchLongerArgument,
1069
1069
) {
1070
1070
// body
1071
1071
};
1072
1072
1073
1073
$noArgs_longVars = function () use (
1074
1074
$longVar1,
1075
1075
$longerVar2,
1076
- $muchLongerVar3
1076
+ $muchLongerVar3,
1077
1077
) {
1078
1078
// body
1079
1079
};
1080
1080
1081
1081
$longArgs_longVars = function (
1082
1082
$longArgument,
1083
1083
$longerArgument,
1084
- $muchLongerArgument
1084
+ $muchLongerArgument,
1085
1085
) use (
1086
1086
$longVar1,
1087
1087
$longerVar2,
1088
- $muchLongerVar3
1088
+ $muchLongerVar3,
1089
1089
) {
1090
1090
// body
1091
1091
};
1092
1092
1093
1093
$longArgs_shortVars = function (
1094
1094
$longArgument,
1095
1095
$longerArgument,
1096
- $muchLongerArgument
1096
+ $muchLongerArgument,
1097
1097
) use ($var1) {
1098
1098
// body
1099
1099
};
1100
1100
1101
1101
$shortArgs_longVars = function ($arg) use (
1102
1102
$longVar1,
1103
1103
$longerVar2,
1104
- $muchLongerVar3
1104
+ $muchLongerVar3,
1105
1105
) {
1106
1106
// body
1107
1107
};
@@ -1118,7 +1118,7 @@ $foo->bar(
1118
1118
function ($arg2) use ($var1) {
1119
1119
// body
1120
1120
},
1121
- $arg3
1121
+ $arg3,
1122
1122
);
1123
1123
```
1124
1124
@@ -1147,7 +1147,7 @@ $func = fn (int $x, int $y): int
1147
1147
1148
1148
$func = fn (
1149
1149
int $x,
1150
- int $y
1150
+ int $y,
1151
1151
): int
1152
1152
=> $x + $y;
1153
1153
```
You can’t perform that action at this time.
0 commit comments