diff --git a/spec.md b/spec.md index 67ee55a..e2604b9 100644 --- a/spec.md +++ b/spec.md @@ -1066,6 +1066,28 @@ MUST follow the same style rules as other binary [comparison][] operators: $variable = $foo ?: 'bar'; ``` +### 6.4. Operator's placement + +A statement that includes an operator MAY be split across multiple lines, where +each subsequent line is indented once. When doing so, the operator MUST be +placed at the beginning of the new line; ternaries MUST occupy 3 lines, never 2. + +For example: + +```php +