Skip to content

Commit e6fda8d

Browse files
committed
Multiline Ternary Expressions
1 parent 7cc26a5 commit e6fda8d

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

CONTRIBUTING.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,16 @@ Apply automatic code style fixes:
6262
composer fix
6363
```
6464

65+
### Multiline Ternary Expressions
66+
67+
Ternary expressions must be spread across multiple lines.
68+
69+
```php
70+
$foo = $cond
71+
? 1
72+
: 2;
73+
```
74+
6575
## Static Analysis
6676

6777
We validate code correctness with [PHPStan](https://phpstan.org).

0 commit comments

Comments
 (0)