We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2441346 commit e222af2Copy full SHA for e222af2
spec.md
@@ -297,6 +297,14 @@ there are no arguments passed to the constructor.
297
new Foo();
298
```
299
300
+If class contains no additional declarations (such as an exception that exists only extend another exception with a new type),
301
+then the body of the class SHOULD be abbreviated as `{}` and placed on the same line as the previous symbol,
302
+separated by a space. For example:
303
+
304
+```php
305
+class MyException extends \RuntimeException {}
306
+```
307
308
### 4.1 Extends and Implements
309
310
The `extends` and `implements` keywords MUST be declared on the same line as
0 commit comments