function test23 in Coder 8.2
Same name in this branch
Same name and namespace in other branches
Void returns allowed when null is given in @return.
When null is a potential return value it should be allowed to have return statements with void return as well.
Return value
bool|null This implies that the return value can be NULL, a boolean, or empty.
File
- coder_sniffer/
Drupal/ Test/ Commenting/ FunctionCommentUnitTest.inc, line 271 - Some function comment tests.
Code
function test23() {
if (1 == 2) {
return;
}
return TRUE;
}