Skip to content

Commit 553519a

Browse files
Add must usage in coding standards
1 parent 68ca943 commit 553519a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

contributing/code/standards.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,9 @@ Structure
195195
- throw new \Exception(sprintf('Command "%s" failed.', $command::class));
196196
+ throw new \Exception(sprintf('Command "%s" failed.', get_debug_type($command)));
197197
198+
* User-oriented exception, error and deprecation messages must not use ``must``. Instead,
199+
alternative phrasing should be used: ``should``, ``needs to``, ``has to``, etc.
200+
198201
* Do not use ``else``, ``elseif``, ``break`` after ``if`` and ``case`` conditions
199202
which return or throw something;
200203

0 commit comments

Comments
 (0)