We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 252ffe7 commit 3b8e644Copy full SHA for 3b8e644
contributing/code/standards.rst
@@ -101,7 +101,10 @@ Structure
101
102
* Declare class properties before methods;
103
104
-* Declare public methods first, then protected ones and finally private ones;
+* Declare public methods first, then protected ones and finally private ones.
105
+ The exceptions to this rule are the class constructor and the ``setUp`` and
106
+ ``tearDown`` methods of PHPUnit tests, which should always be the first methods
107
+ to increase readability.
108
109
* Use parentheses when instantiating classes regardless of the number of
110
arguments the constructor has;
0 commit comments