Skip to content

Commit 0b9d50c

Browse files
committed
minor #18125 Add return types (hbgamra)
This PR was merged into the 5.4 branch. Discussion ---------- Add return types Fix bug return type <!-- If your pull request fixes a BUG, use the oldest maintained branch that contains the bug (see https://symfony.com/releases for the list of maintained branches). If your pull request documents a NEW FEATURE, use the same Symfony branch where the feature was introduced (and `6.x` for features of unreleased versions). --> Commits ------- 6813605 Update upload_file.rst
2 parents a7c8c72 + 6813605 commit 0b9d50c

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
@@ -31,7 +31,7 @@ add a PDF brochure for each product. To do so, add a new property called
3131
return $this->brochureFilename;
3232
}
3333

34-
public function setBrochureFilename(string $brochureFilename)
34+
public function setBrochureFilename(string $brochureFilename): self
3535
{
3636
$this->brochureFilename = $brochureFilename;
3737

@@ -91,7 +91,7 @@ so Symfony doesn't try to get/set its value from the related entity::
9191
;
9292
}
9393

94-
public function configureOptions(OptionsResolver $resolver)
94+
public function configureOptions(OptionsResolver $resolver): void
9595
{
9696
$resolver->setDefaults([
9797
'data_class' => Product::class,

0 commit comments

Comments
 (0)