Skip to content

Commit 4944cda

Browse files
committed
bug #6679 Invalid PHP return statement (JohnnyEvo)
This PR was submitted for the 3.1 branch but it was merged into the 2.7 branch instead (closes #6679). Discussion ---------- Invalid PHP return statement Add ';' to end return statement Commits ------- 70ab2fe Invalid PHP return statement
2 parents 9d90b1b + 70ab2fe commit 4944cda

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

reference/forms/types/choice.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ method::
107107
},
108108
'group_by' => function($category, $key, $index) {
109109
// randomly assign things into 2 groups
110-
return rand(0, 1) == 1 ? 'Group A' : 'Group B'
110+
return rand(0, 1) == 1 ? 'Group A' : 'Group B';
111111
},
112112
'preferred_choices' => function($category, $key, $index) {
113113
return $category->getName() == 'Cat2' || $category->getName() == 'Cat3';

0 commit comments

Comments
 (0)