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 @@ -542,7 +542,7 @@ class ClassName
542
542
public function aVeryLongMethodName(
543
543
ClassTypeHint $arg1,
544
544
& $arg2,
545
- array $arg3 = []
545
+ array $arg3 = [],
546
546
) {
547
547
// method body
548
548
}
@@ -571,7 +571,7 @@ class ReturnTypeVariations
571
571
public function anotherFunction(
572
572
string $foo,
573
573
string $bar,
574
- int $baz
574
+ int $baz,
575
575
): string {
576
576
return 'foo';
577
577
}
@@ -687,7 +687,7 @@ array) does not constitute splitting the argument list itself.
687
687
$foo->bar(
688
688
$longArgument,
689
689
$longerArgument,
690
- $muchLongerArgument
690
+ $muchLongerArgument,
691
691
);
692
692
```
693
693
@@ -1044,43 +1044,43 @@ variable lists split across multiple lines.
1044
1044
$longArgs_noVars = function (
1045
1045
$longArgument,
1046
1046
$longerArgument,
1047
- $muchLongerArgument
1047
+ $muchLongerArgument,
1048
1048
) {
1049
1049
// body
1050
1050
};
1051
1051
1052
1052
$noArgs_longVars = function () use (
1053
1053
$longVar1,
1054
1054
$longerVar2,
1055
- $muchLongerVar3
1055
+ $muchLongerVar3,
1056
1056
) {
1057
1057
// body
1058
1058
};
1059
1059
1060
1060
$longArgs_longVars = function (
1061
1061
$longArgument,
1062
1062
$longerArgument,
1063
- $muchLongerArgument
1063
+ $muchLongerArgument,
1064
1064
) use (
1065
1065
$longVar1,
1066
1066
$longerVar2,
1067
- $muchLongerVar3
1067
+ $muchLongerVar3,
1068
1068
) {
1069
1069
// body
1070
1070
};
1071
1071
1072
1072
$longArgs_shortVars = function (
1073
1073
$longArgument,
1074
1074
$longerArgument,
1075
- $muchLongerArgument
1075
+ $muchLongerArgument,
1076
1076
) use ($var1) {
1077
1077
// body
1078
1078
};
1079
1079
1080
1080
$shortArgs_longVars = function ($arg) use (
1081
1081
$longVar1,
1082
1082
$longerVar2,
1083
- $muchLongerVar3
1083
+ $muchLongerVar3,
1084
1084
) {
1085
1085
// body
1086
1086
};
@@ -1097,7 +1097,7 @@ $foo->bar(
1097
1097
function ($arg2) use ($var1) {
1098
1098
// body
1099
1099
},
1100
- $arg3
1100
+ $arg3,
1101
1101
);
1102
1102
```
1103
1103
@@ -1126,7 +1126,7 @@ $func = fn (int $x, int $y): int
1126
1126
1127
1127
$func = fn (
1128
1128
int $x,
1129
- int $y
1129
+ int $y,
1130
1130
): int
1131
1131
=> $x + $y;
1132
1132
```
You can’t perform that action at this time.
0 commit comments