Skip to content

Commit 90f63b3

Browse files
committed
Add note about Concatenation spacing
1 parent f5e7995 commit 90f63b3

File tree

1 file changed

+7
-0
lines changed
  • manual/en-US/coding-standards/chapters

1 file changed

+7
-0
lines changed

manual/en-US/coding-standards/chapters/php.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,13 @@ $ref1 = &$this->sql;
145145
>
146146
> In PHP 5, reference operators are not required for objects. All objects are handled by reference.
147147
148+
## Concatenation Spacing
149+
There should always be a space between two objects for example
150+
151+
```php
152+
$variable = 'Hello' . 'World';
153+
```
154+
148155
## Arrays
149156

150157
Assignments (the `=>` operator) in arrays may be aligned with tabs. When splitting array definitions onto several lines, the last value may also have a trailing comma. This is valid PHP syntax and helps to keep code diffs minimal.

0 commit comments

Comments
 (0)