Skip to content

Commit eecfcd6

Browse files
committed
Merge branch '6.2' into 6.3
* 6.2: Update create_custom_field_type.rst
2 parents 31642f3 + 9fcdd32 commit eecfcd6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

form/create_custom_field_type.rst

Lines changed: 2 additions & 1 deletion
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)