Skip to content

Commit

Permalink
Invalid PHP return statement
Browse files Browse the repository at this point in the history
Add ';' to end return statement
  • Loading branch information
Charcosset Johnny authored and wouterj committed Jun 24, 2016
1 parent 9d90b1b commit 70ab2fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion reference/forms/types/choice.rst
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 70ab2fe

Please sign in to comment.