Skip to content

Commit

Permalink
Merge pull request #40 from vjik/typecasting-space
Browse files Browse the repository at this point in the history
Spaces in type casting
  • Loading branch information
KorvinSzanto authored Sep 16, 2022
2 parents 9dc210d + 65dad54 commit b49fd56
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion spec.md
Original file line number Diff line number Diff line change
Expand Up @@ -990,7 +990,9 @@ $i++;
++$j;
```

Type casting operators MUST NOT have any space within the parentheses:
Type casting operators MUST NOT have any space within the parentheses and MUST be separated from the variable they are
operating on by exactly one space:

```php
$intValue = (int) $input;
```
Expand Down

0 comments on commit b49fd56

Please sign in to comment.