Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 156ad38

Browse filesBrowse 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
Copy full SHA for 156ad38

File tree

Expand file treeCollapse file tree

1 file changed

+4
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+4
-1
lines changed

‎contributing/code/standards.rst

Copy file name to clipboardExpand all lines: contributing/code/standards.rst
+4-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.