Skip to content

Commit a06cdcf

Browse files
authored
Merge pull request #59 from samdark/add-comments-to-empty-methods
Clarify empty statement rules
2 parents af462c8 + af6da50 commit a06cdcf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -512,7 +512,7 @@ function fooBarBaz($arg1, &$arg2, $arg3 = [])
512512
}
513513
```
514514

515-
If a function or method contains no statements (such as a no-op implementation or when using
515+
If a function or method contains no statements or comments (such as an empty no-op implementation or when using
516516
constructor property promotion), then the body SHOULD be abbreviated as `{}` and placed on the same
517517
line as the previous symbol, separated by a space. For example:
518518

0 commit comments

Comments
 (0)