Skip to content

Commit b0b2def

Browse files
committed
minor #9429 Add rule to import classes except for built-in PHP classes. (umulmrum)
This PR was squashed before being merged into the 2.7 branch (closes #9429). Discussion ---------- Add rule to import classes except for built-in PHP classes. Fixes #9426 (class imports were shown in the example but there was no rule in the text). Commits ------- 9c75279 Add rule to import classes except for built-in PHP classes.
2 parents 29701f1 + 9c75279 commit b0b2def

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

contributing/code/standards.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,9 @@ Structure
192192
* Do not use ``else``, ``elseif``, ``break`` after ``if`` and ``case`` conditions
193193
which return or throw something;
194194

195-
* Do not use spaces around ``[`` offset accessor and before ``]`` offset accessor.
195+
* Do not use spaces around ``[`` offset accessor and before ``]`` offset accessor;
196+
197+
* Add a ``use`` statement for every class that is not part of the global namespace.
196198

197199
Naming Conventions
198200
~~~~~~~~~~~~~~~~~~

0 commit comments

Comments
 (0)