Skip to content

Commit 1cd54d3

Browse files
committed
Merge branch '6.2' into 6.3
* 6.2: [Standards] Improve code standards about exception and error messages
2 parents 62cfe68 + f43cae1 commit 1cd54d3

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

contributing/code/standards.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,12 @@ Structure
179179

180180
* Exception and error message strings must be concatenated using :phpfunction:`sprintf`;
181181

182+
* Exception and error messages must not contain backticks (e.g. 'The \`foo\` option ...'),
183+
even when referring to a technical element (such as a method or variable name).
184+
Double quotes must be used at all time (e.g. 'The "foo" option ...'),;
185+
186+
* Exception and error messages must start with a capital letter and finish with a dot ``.``;
187+
182188
* Do not use ``else``, ``elseif``, ``break`` after ``if`` and ``case`` conditions
183189
which return or throw something;
184190

0 commit comments

Comments
 (0)