-
Bug
-
Resolution: Deferred
-
Minor
-
None
-
3.9
-
None
-
MOODLE_39_STABLE
This is about to enforce the following policy decided recently (MDLSITE-5873).
Policy: Trailing comma in multi-line array declaration
Since 20th May 2020, this rule applies:
- The uses of a trailing comma on multi-line array declaration is required in PHP and JS.
- It's NOT required to change all current old-style occurrences in the codebase. We'll follow a progressive approach here (new code and modified code)
For example for the expected format:
$foo = [
'a',
'b',
'c',
];
This issue is about to verify these details in the codechecker. Nothing more, nothing less.
- has been marked as being related by
-
MDLSITE-5873 Clarify coding style for trailing comma in multi-line array declaration
-
- Closed
-