Skip to content

Commit 156ad38

Browse files
committed
minor #10550 [standards] Document "phpdoc_types_order" (phansys)
This PR was merged into the 2.8 branch. Discussion ---------- [standards] Document "phpdoc_types_order" See symfony/symfony#28780. Commits ------- 7587534 [standards] Document "phpdoc_types_order"
2 parents d0aa1c2 + 7587534 commit 156ad38

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)