Skip to content

Commit d887b5a

Browse files
hbgamrajaviereguiluz
authored andcommitted
Update create_custom_field_type.rst
Adding return type for setNormalizer callback function
1 parent 656c2c1 commit d887b5a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

form/create_custom_field_type.rst

+2-1
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,8 @@ to define, validate and process their values::
271271

272272
// optionally you can transform the given values for the options to
273273
// simplify the further processing of those options
274-
$resolver->setNormalizer('allowed_states', static function (Options $options, $states) {
274+
$resolver->setNormalizer('allowed_states', static function (Options $options, $states): ?array
275+
{
275276
if (null === $states) {
276277
return $states;
277278
}

0 commit comments

Comments
 (0)