Skip to content

Commit 6813605

Browse files
authored
Update upload_file.rst
Fix bug return type
1 parent 7322465 commit 6813605

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

controller/upload_file.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ add a PDF brochure for each product. To do so, add a new property called
3434
return $this->brochureFilename;
3535
}
3636

37-
public function setBrochureFilename(string $brochureFilename)
37+
public function setBrochureFilename(string $brochureFilename): self
3838
{
3939
$this->brochureFilename = $brochureFilename;
4040

@@ -94,7 +94,7 @@ so Symfony doesn't try to get/set its value from the related entity::
9494
;
9595
}
9696

97-
public function configureOptions(OptionsResolver $resolver)
97+
public function configureOptions(OptionsResolver $resolver): void
9898
{
9999
$resolver->setDefaults([
100100
'data_class' => Product::class,

0 commit comments

Comments
 (0)