-
Bug
-
Resolution: Deferred
-
Minor
-
None
-
3.9
-
None
-
MOODLE_39_STABLE
From MDLSITE-5667:
Policy: Function/methods whitespace rules about return types and nullables
Since 02nd April 2020, this has been agreed:
(matching the PSR-12)
1) No whitespace between the nullable character (question mark -?) and params or return types.
2) No whitespace between the function closing brackets and the colon.
With an image speaking a thousand words. Correct:
public function foo(string $bar, ?int $baz): ?bool {}
|
This issue is about to verify those 2 details in the codechecker. Nothing more, nothing less.
- has a non-specific relationship to
-
MDLSITE-5667 Coding style ruling about function/method return types and nullables
- Closed