We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8d05d36 + e0d65c9 commit 52a2d8eCopy full SHA for 52a2d8e
spec.md
@@ -1188,7 +1188,7 @@ $foo->bar(
1188
Short closures, also known as arrow functions, MUST follow the same guidelines
1189
and principles as long closures above, with the following additions.
1190
1191
-The `fn` keyword MUST be preceded by a space, and MUST NOT be succeeded by a space.
+The `fn` keyword MUST NOT be succeeded by a space.
1192
1193
The `=>` symbol MUST be preceded and succeeded by a space.
1194
@@ -1211,6 +1211,8 @@ $func = fn(
1211
int $y,
1212
): int
1213
=> $x + $y;
1214
+
1215
+$result = $collection->reduce(fn(int $x, int $y): int => $x + $y, 0);
1216
```
1217
1218
## 8. Anonymous Classes
0 commit comments