From af6da50c93230a9c17ce3ed60ea10e25f8813e4d Mon Sep 17 00:00:00 2001 From: Alexander Makarov Date: Tue, 7 Feb 2023 22:11:19 +0400 Subject: [PATCH] Clarify empty statement rules --- spec.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec.md b/spec.md index f677e76..2a7faf5 100644 --- a/spec.md +++ b/spec.md @@ -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: