Skip to content

Commit 9b401e6

Browse files
authored
Merge branch 'master' into initial-draft
2 parents 3f0c173 + 8201676 commit 9b401e6

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
@@ -259,6 +259,7 @@ by a blank line.
259259
Closing braces MUST be on their own line and MUST NOT be preceded by a blank
260260
line.
261261

262+
262263
```php
263264
<?php
264265

@@ -889,6 +890,7 @@ All operators not described here are left undefined.
889890

890891
The increment/decrement operators MUST NOT have any space between
891892
the operator and operand.
893+
892894
```php
893895
$i++;
894896
++$j;
@@ -904,6 +906,7 @@ $intValue = (int) $input;
904906
All binary [arithmetic][], [comparison][], [assignment][], [bitwise][],
905907
[logical][], [string][], and [type][] operators MUST be preceded and
906908
followed by at least one space:
909+
907910
```php
908911
if ($a === $b) {
909912
$foo = $bar ?? $a ?? $b;
@@ -917,6 +920,7 @@ if ($a === $b) {
917920
The conditional operator, also known simply as the ternary operator, MUST be
918921
preceded and followed by at least one space around both the `?`
919922
and `:` characters:
923+
920924
```php
921925
$variable = $foo ? 'foo' : 'bar';
922926
```

0 commit comments

Comments
 (0)