Skip to content

Commit

Permalink
Merge pull request #59 from samdark/add-comments-to-empty-methods
Browse files Browse the repository at this point in the history
Clarify empty statement rules
  • Loading branch information
KorvinSzanto authored Feb 8, 2023
2 parents af462c8 + af6da50 commit a06cdcf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec.md
Original file line number Diff line number Diff line change
Expand Up @@ -512,7 +512,7 @@ function fooBarBaz($arg1, &$arg2, $arg3 = [])
}
```

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

Expand Down

0 comments on commit a06cdcf

Please sign in to comment.