From 7d6282e1e2faaafb14dd52fbe45af5ae92661db1 Mon Sep 17 00:00:00 2001 From: Robin Speekenbrink Date: Thu, 23 Jun 2022 14:09:32 +0200 Subject: [PATCH 1/2] fix: Unify the usage of () after class instances (including anonymous classes) According to chapter 4: > ## 4. Classes, Properties, and Methods > > The term "class" refers to all classes, interfaces, and traits. > > Any closing brace MUST NOT be followed by any comment or statement on the same line. > > When instantiating a new class, parentheses MUST always be present even when there are no arguments passed to the constructor. This MR updates the spec to adhere to that rule on anonymous classes too. (taken from moved from https://github.com/php-fig/fig-standards/pull/1283 but also builds upon https://github.com/php-fig/per-coding-style/pull/17) --- spec.md | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/spec.md b/spec.md index 66dbad4..801e266 100644 --- a/spec.md +++ b/spec.md @@ -1055,24 +1055,27 @@ in the above section. ```php Date: Thu, 23 Jun 2022 15:23:16 +0200 Subject: [PATCH 2/2] fix: review comment --- spec.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec.md b/spec.md index 801e266..d53cd96 100644 --- a/spec.md +++ b/spec.md @@ -1056,7 +1056,7 @@ in the above section.