mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-08-03 17:55:03 +02:00
Fixed some deprecations
This commit is contained in:
parent
df8f54f5a4
commit
219b57a362
35 changed files with 42 additions and 54 deletions
|
@ -13,7 +13,7 @@ class ProjectBOMEntryCollectionType extends AbstractType
|
|||
return CollectionType::class;
|
||||
}
|
||||
|
||||
public function configureOptions(OptionsResolver $resolver)
|
||||
public function configureOptions(OptionsResolver $resolver): void
|
||||
{
|
||||
$resolver->setDefaults([
|
||||
'entry_type' => ProjectBOMEntryType::class,
|
||||
|
|
|
@ -18,7 +18,7 @@ use Symfony\Component\OptionsResolver\OptionsResolver;
|
|||
class ProjectBOMEntryType extends AbstractType
|
||||
{
|
||||
|
||||
public function buildForm(FormBuilderInterface $builder, array $options)
|
||||
public function buildForm(FormBuilderInterface $builder, array $options): void
|
||||
{
|
||||
|
||||
|
||||
|
|
|
@ -43,7 +43,7 @@ class ProjectBuildType extends AbstractType implements DataMapperInterface
|
|||
{
|
||||
}
|
||||
|
||||
public function configureOptions(OptionsResolver $resolver)
|
||||
public function configureOptions(OptionsResolver $resolver): void
|
||||
{
|
||||
$resolver->setDefaults([
|
||||
'compound' => true,
|
||||
|
@ -51,7 +51,7 @@ class ProjectBuildType extends AbstractType implements DataMapperInterface
|
|||
]);
|
||||
}
|
||||
|
||||
public function buildForm(FormBuilderInterface $builder, array $options)
|
||||
public function buildForm(FormBuilderInterface $builder, array $options): void
|
||||
{
|
||||
$builder->setDataMapper($this);
|
||||
|
||||
|
@ -104,7 +104,7 @@ class ProjectBuildType extends AbstractType implements DataMapperInterface
|
|||
});
|
||||
}
|
||||
|
||||
public function mapDataToForms($data, \Traversable $forms)
|
||||
public function mapDataToForms($data, \Traversable $forms): void
|
||||
{
|
||||
if (!$data instanceof ProjectBuildRequest) {
|
||||
throw new \RuntimeException('Data must be an instance of ' . ProjectBuildRequest::class);
|
||||
|
@ -129,7 +129,7 @@ class ProjectBuildType extends AbstractType implements DataMapperInterface
|
|||
|
||||
}
|
||||
|
||||
public function mapFormsToData(\Traversable $forms, &$data)
|
||||
public function mapFormsToData(\Traversable $forms, &$data): void
|
||||
{
|
||||
if (!$data instanceof ProjectBuildRequest) {
|
||||
throw new \RuntimeException('Data must be an instance of ' . ProjectBuildRequest::class);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue