Skip to content

Commit 1e76f5e

Browse files
Add ternary operator on multi-line
1 parent 58a17b4 commit 1e76f5e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

spec.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1057,6 +1057,10 @@ and `:` characters:
10571057

10581058
```php
10591059
$variable = $foo ? 'foo' : 'bar';
1060+
1061+
$variableMultiLine = $foo
1062+
? 'foo'
1063+
: 'bar';
10601064
```
10611065

10621066
When the middle operand of the conditional operator is omitted, the operator

0 commit comments

Comments
 (0)