mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-03 06:54:34 +02:00
Fixed some deprecations related to missing return types
This commit is contained in:
parent
eb24aa2e68
commit
294f7cf005
11 changed files with 20 additions and 21 deletions
|
@ -43,7 +43,7 @@ class ProviderSelectType extends AbstractType
|
|||
return ChoiceType::class;
|
||||
}
|
||||
|
||||
public function configureOptions(OptionsResolver $resolver)
|
||||
public function configureOptions(OptionsResolver $resolver): void
|
||||
{
|
||||
$resolver->setDefaults([
|
||||
'choices' => $this->providerRegistry->getActiveProviders(),
|
||||
|
|
|
@ -46,7 +46,7 @@ class PasswordTypeExtension extends AbstractTypeExtension
|
|||
$resolver->setAllowedTypes('password_estimator', 'bool');
|
||||
}
|
||||
|
||||
public function finishView(FormView $view, FormInterface $form, array $options)
|
||||
public function finishView(FormView $view, FormInterface $form, array $options): void
|
||||
{
|
||||
$view->vars['password_estimator'] = $options['password_estimator'];
|
||||
}
|
||||
|
|
|
@ -35,7 +35,7 @@ use Symfony\Component\Validator\Constraints\NotNull;
|
|||
|
||||
class ProjectAddPartsType extends AbstractType
|
||||
{
|
||||
public function buildForm(FormBuilderInterface $builder, array $options)
|
||||
public function buildForm(FormBuilderInterface $builder, array $options): void
|
||||
{
|
||||
$builder->add('project', StructuralEntityType::class, [
|
||||
'class' => Project::class,
|
||||
|
@ -73,7 +73,7 @@ class ProjectAddPartsType extends AbstractType
|
|||
});
|
||||
}
|
||||
|
||||
public function configureOptions(OptionsResolver $resolver)
|
||||
public function configureOptions(OptionsResolver $resolver): void
|
||||
{
|
||||
$resolver->setDefaults([
|
||||
'project' => null,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue