Skip to content

Commit

Permalink
[Fix] Define nullable parameter as nullable (#15)
Browse files Browse the repository at this point in the history
* Define nullable parameter as nullable

* Fix styling

* Fix order of params

* Fix styling

---------

Co-authored-by: Baspa <10845460+Baspa@users.noreply.github.com>
  • Loading branch information
Baspa and Baspa authored Jan 13, 2025
1 parent a542c6c commit 837e041
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/Controllers/MailDownloadController.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,12 @@

class MailDownloadController extends Controller
{
public function __invoke(string $tenant, string $mail, string $attachment, string $filename)
{
public function __invoke(
?string $tenant,
string $mail,
string $attachment,
string $filename
) {
/** @var MailAttachment $attachment */
$attachment = MailAttachment::find($attachment);

Expand Down

0 comments on commit 837e041

Please sign in to comment.