Skip to content

Commit

Permalink
bug #6679 Invalid PHP return statement (JohnnyEvo)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
wouterj committed Jun 24, 2016
2 parents 9d90b1b + 70ab2fe commit 4944cda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion reference/forms/types/choice.rst
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ method::
},
'group_by' => function($category, $key, $index) {
// randomly assign things into 2 groups
return rand(0, 1) == 1 ? 'Group A' : 'Group B'
return rand(0, 1) == 1 ? 'Group A' : 'Group B';
},
'preferred_choices' => function($category, $key, $index) {
return $category->getName() == 'Cat2' || $category->getName() == 'Cat3';
Expand Down

0 comments on commit 4944cda

Please sign in to comment.