File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -631,10 +631,6 @@ public function process(string $algorithm, &...$parts)
631631}
632632```
633633
634- When invoking a function or method, the same rules apply for the arguments to the function as for the parameters.
635- Additionally, if using named arguments, there MUST NOT be a space between the argument name
636- and colon, and there MUST be a single space between the colon and the argument value.
637-
638634### 4.6 Modifier Keywords
639635
640636Properties and methods of a class have numerous keyword modifiers that alter how the
@@ -718,6 +714,13 @@ $app->get('/hello/{name}', function ($name) use ($app) {
718714});
719715```
720716
717+ If using named arguments, there MUST NOT be a space between the argument name
718+ and colon, and there MUST be a single space between the colon and the argument value.
719+
720+ ``` php
721+ somefunction($a, b: $b, c: 'c');
722+ ```
723+
721724Method chaining MAY be put on separate lines, where each subsequent line is indented once. When doing so, the first
722725method MUST be on the next line.
723726
You can’t perform that action at this time.
0 commit comments