File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -1298,7 +1298,9 @@ be placed on their own line, immediately prior to the structure being described.
1298
1298
For attributes on parameters, if the parameter list is presented on a single line,
1299
1299
the attribute MUST be placed inline with the parameter it describes, separated by a single space.
1300
1300
If the parameter list is split into multiple lines for any reason, the attribute MUST be placed on
1301
- its own line prior to the parameter, indented the same as the parameter.
1301
+ its own line prior to the parameter, indented the same as the parameter. If the parameter list
1302
+ is split into multiple lines, a blank line MAY be included between one parameter and the attributes
1303
+ of the following parameter in order to aid readability.
1302
1304
1303
1305
If a comment docblock is present on a structure that also includes an attribute, the comment block MUST
1304
1306
come first, followed by any attributes, followed by the structure itself. There MUST NOT be any blank lines
@@ -1331,6 +1333,14 @@ class Demo
1331
1333
#[Beep]
1332
1334
private Foo $foo;
1333
1335
1336
+ public function __construct(
1337
+ #[Load(context: ' foo ' , bar: true)]
1338
+ private readonly FooService $fooService,
1339
+
1340
+ #[LoadProxy(context: ' bar ' )]
1341
+ private readonly BarService $barService,
1342
+ ) {}
1343
+
1334
1344
/**
1335
1345
* Sets the foo.
1336
1346
*/
You can’t perform that action at this time.
0 commit comments