fix uppercase in person form with strict types

This commit is contained in:
Julien Fastré 2021-12-06 17:24:58 +01:00
parent 2788149db4
commit 25147704ad

View File

@ -114,10 +114,10 @@ class PersonType extends AbstractType
$builder->get('placeOfBirth')->addModelTransformer(new CallbackTransformer(
static function ($string) {
return strtoupper($string);
return strtoupper((string) $string);
},
static function ($string) {
return strtoupper($string);
return strtoupper((string) $string);
}
));
}