File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1188,7 +1188,7 @@ $foo->bar(
11881188Short closures, also known as arrow functions, MUST follow the same guidelines
11891189and principles as long closures above, with the following additions.
11901190
1191- The ` fn ` keyword MUST be preceded and succeeded by a space.
1191+ The ` fn ` keyword MUST be preceded by a space, and MUST NOT be succeeded by a space.
11921192
11931193The ` => ` symbol MUST be preceded and succeeded by a space.
11941194
@@ -1201,12 +1201,12 @@ The following examples show proper common usage of short closures.
12011201
12021202``` php
12031203
1204- $func = fn (int $x, int $y): int => $x + $y;
1204+ $func = fn(int $x, int $y): int => $x + $y;
12051205
1206- $func = fn (int $x, int $y): int
1206+ $func = fn(int $x, int $y): int
12071207 => $x + $y;
12081208
1209- $func = fn (
1209+ $func = fn(
12101210 int $x,
12111211 int $y,
12121212): int
You can’t perform that action at this time.
0 commit comments