Fixed some return type deprecation messages

This commit is contained in:
Jan Böhmer 2023-04-15 19:33:39 +02:00
parent 558440168d
commit 1cee1abe00
37 changed files with 70 additions and 70 deletions

View file

@ -41,7 +41,7 @@ class InstanceOfConstraintType extends AbstractType
$resolver->setDefault('data_class', InstanceOfConstraint::class);
}
public function getParent()
public function getParent(): string
{
return ChoiceConstraintType::class;
}

View file

@ -8,7 +8,7 @@ use Symfony\Component\OptionsResolver\OptionsResolver;
class ProjectBOMEntryCollectionType extends AbstractType
{
public function getParent()
public function getParent(): string
{
return CollectionType::class;
}
@ -28,7 +28,7 @@ class ProjectBOMEntryCollectionType extends AbstractType
]);
}
public function getBlockPrefix()
public function getBlockPrefix(): string
{
return 'project_bom_entry_collection';
}

View file

@ -93,7 +93,7 @@ class ProjectBOMEntryType extends AbstractType
}
public function getBlockPrefix()
public function getBlockPrefix(): string
{
return 'project_bom_entry';
}

View file

@ -31,7 +31,7 @@ use Symfony\Component\OptionsResolver\OptionsResolver;
class PartLotSelectType extends AbstractType
{
public function getParent()
public function getParent(): string
{
return EntityType::class;
}

View file

@ -117,7 +117,7 @@ class PartSelectType extends AbstractType implements DataMapperInterface
]);
}
public function getBlockPrefix()
public function getBlockPrefix(): string
{
return 'part_select';
}

View file

@ -34,7 +34,7 @@ class ThemeChoiceType extends AbstractType
$this->available_themes = $available_themes;
}
public function getParent()
public function getParent(): string
{
return ChoiceType::class;
}

View file

@ -40,7 +40,7 @@ class UserSelectType extends AbstractType
]);
}
public function getParent()
public function getParent(): string
{
return StructuralEntityType::class;
}