File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -715,7 +715,7 @@ Foo::bar($arg2, $arg3);
715
715
Argument lists MAY be split across multiple lines, where each subsequent line
716
716
is indented once. When doing so, the first item in the list MUST be on the
717
717
next line, and there MUST be only one argument per line. A single argument being
718
- split across multiple lines (as might be the case with an anonymous function or
718
+ split across multiple lines (as might be the case with a closure or
719
719
array) does not constitute splitting the argument list itself.
720
720
721
721
The following examples show correct argument usage.
@@ -1069,8 +1069,8 @@ $variable = $foo ?: 'bar';
1069
1069
1070
1070
## 7. Closures
1071
1071
1072
- Closures MUST be declared with a space after the ` function ` keyword, and a
1073
- space before and after the ` use ` keyword.
1072
+ Closures, also known as anonymous functions, MUST be declared with a space
1073
+ after the ` function ` keyword, and a space before and after the ` use ` keyword.
1074
1074
1075
1075
The opening brace MUST go on the same line, and the closing brace MUST go on
1076
1076
the next line following the body.
You can’t perform that action at this time.
0 commit comments