function test24 in Coder 8.3.x
Same name in this branch
Same name and namespace in other branches
Even when null is given in
Return value
there must be at least 1 valid return.
When null is a potential return value it should be allowed to have return statements with void return. This does not mean that all returns can be void. There must be at least one non-void return.
bool|null This implies that the return value can be NULL, a boolean, or empty.
File
- tests/
Drupal/ Commenting/ FunctionCommentUnitTest.inc, line 288 - Some function comment tests.
Code
function test24() {
if (1 == 2) {
return;
}
return;
}