Skip to content

Commit 7587534

Browse files
committed
[standards] Document "phpdoc_types_order"
1 parent 9cd5b2b commit 7587534

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

contributing/code/standards.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,10 @@ Structure
194194

195195
* Do not use spaces around ``[`` offset accessor and before ``]`` offset accessor;
196196

197-
* Add a ``use`` statement for every class that is not part of the global namespace.
197+
* Add a ``use`` statement for every class that is not part of the global namespace;
198+
199+
* When PHPDoc blocks like `@param` or `@return` include ``null`` and declare multiple
200+
types, place ``null`` always on the last position.
198201

199202
Naming Conventions
200203
~~~~~~~~~~~~~~~~~~

0 commit comments

Comments
 (0)