Added return types to ExponentialNumberTypes for futureproofing the implementation

This commit is contained in:
Jan Böhmer 2024-12-29 13:14:26 +01:00
parent 164efb0551
commit a9f444cbb4

View file

@ -39,7 +39,7 @@ class ExponentialNumberType extends AbstractType
return NumberType::class; return NumberType::class;
} }
public function configureOptions(OptionsResolver $resolver) public function configureOptions(OptionsResolver $resolver): void
{ {
$resolver->setDefaults([ $resolver->setDefaults([
//We want to allow the full precision of the number, so disable rounding //We want to allow the full precision of the number, so disable rounding
@ -47,7 +47,7 @@ class ExponentialNumberType extends AbstractType
]); ]);
} }
public function buildForm(FormBuilderInterface $builder, array $options) public function buildForm(FormBuilderInterface $builder, array $options): void
{ {
$builder->resetViewTransformers(); $builder->resetViewTransformers();