@@ -1276,11 +1276,12 @@ function allowed()
1276
1276
compliant
1277
1277
nowdoc
1278
1278
COMPLIANT;
1279
+ }
1279
1280
```
1280
1281
1281
1282
## 11. Attributes
1282
1283
1283
- ### 12 .1 Basics
1284
+ ### 11 .1 Basics
1284
1285
1285
1286
Attribute names must immediately follow the opening attribute block indicator `#[` with no space.
1286
1287
@@ -1289,7 +1290,7 @@ If an attribute has no arguments, the `()` MUST be omitted.
1289
1290
The closing attribute block indicator `]` MUST follow the last character of the attribute name or the closing `)` of
1290
1291
its argument list, with no preceding space.
1291
1292
1292
- ### 12 .2 Placement
1293
+ ### 11 .2 Placement
1293
1294
1294
1295
Attributes on classes, methods, functions, constants and properties MUST
1295
1296
be placed on their own line, immediately prior to the structure being described.
@@ -1306,10 +1307,10 @@ between the docblock and attributes, or the attributes and the structure.
1306
1307
If two separate attribute blocks (denoted by separate `#[]` markers) are used in a multi-line context,
1307
1308
they MUST be on separate lines with no blank lines between them.
1308
1309
1309
- ### 12 .3 Compound attributes
1310
+ ### 11 .3 Compound attributes
1310
1311
1311
1312
Multiple attributes MAY be placed in the same attribute block (`#[]`) if and only if the entire block is listed on a
1312
- single line. They must be separated by a comma with a space following but no space preceding. If the attribute list
1313
+ single line and each attribute is reasonably short . They MUST be separated by a comma with a space following but no space preceding. If the attribute list
1313
1314
is split into multiple lines for any reason, then the attributes MUST be placed in separate attribute blocks.
1314
1315
Those blocks may themselves contain multiple attributes provided this rule is respected.
1315
1316
@@ -1318,7 +1319,7 @@ If an attribute's argument list is split into multiple lines for any reason, the
1318
1319
* The attribute MUST be the only one in its attribute block.
1319
1320
* The attribute arguments MUST follow the same rules as defined for multiline function calls.
1320
1321
1321
- ### 12 .4 Example
1322
+ ### 11 .4 Example
1322
1323
1323
1324
The following is an example of valid attribute usage.
1324
1325
0 commit comments