mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-13 11:54:32 +02:00
Fixed some return type deprecation messages
This commit is contained in:
parent
558440168d
commit
1cee1abe00
37 changed files with 70 additions and 70 deletions
|
@ -41,7 +41,7 @@ class InstanceOfConstraintType extends AbstractType
|
|||
$resolver->setDefault('data_class', InstanceOfConstraint::class);
|
||||
}
|
||||
|
||||
public function getParent()
|
||||
public function getParent(): string
|
||||
{
|
||||
return ChoiceConstraintType::class;
|
||||
}
|
||||
|
|
|
@ -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';
|
||||
}
|
||||
|
|
|
@ -93,7 +93,7 @@ class ProjectBOMEntryType extends AbstractType
|
|||
}
|
||||
|
||||
|
||||
public function getBlockPrefix()
|
||||
public function getBlockPrefix(): string
|
||||
{
|
||||
return 'project_bom_entry';
|
||||
}
|
||||
|
|
|
@ -31,7 +31,7 @@ use Symfony\Component\OptionsResolver\OptionsResolver;
|
|||
|
||||
class PartLotSelectType extends AbstractType
|
||||
{
|
||||
public function getParent()
|
||||
public function getParent(): string
|
||||
{
|
||||
return EntityType::class;
|
||||
}
|
||||
|
|
|
@ -117,7 +117,7 @@ class PartSelectType extends AbstractType implements DataMapperInterface
|
|||
]);
|
||||
}
|
||||
|
||||
public function getBlockPrefix()
|
||||
public function getBlockPrefix(): string
|
||||
{
|
||||
return 'part_select';
|
||||
}
|
||||
|
|
|
@ -34,7 +34,7 @@ class ThemeChoiceType extends AbstractType
|
|||
$this->available_themes = $available_themes;
|
||||
}
|
||||
|
||||
public function getParent()
|
||||
public function getParent(): string
|
||||
{
|
||||
return ChoiceType::class;
|
||||
}
|
||||
|
|
|
@ -40,7 +40,7 @@ class UserSelectType extends AbstractType
|
|||
]);
|
||||
}
|
||||
|
||||
public function getParent()
|
||||
public function getParent(): string
|
||||
{
|
||||
return StructuralEntityType::class;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue