Skip to content

Commit 6d3fc80

Browse files
[Standards] Improve code standards about exception and error messages
1 parent 7322465 commit 6d3fc80

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, even when referring to a
183+
technical element (such as a method name for example). Double quotes must be used
184+
at all time;
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)