Skip to content

Commit

Permalink
Define nullable parameter as nullable
Browse files Browse the repository at this point in the history
  • Loading branch information
Baspa committed Jan 13, 2025
1 parent a542c6c commit c03c55e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Controllers/MailDownloadController.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

class MailDownloadController extends Controller
{
public function __invoke(string $tenant, string $mail, string $attachment, string $filename)
public function __invoke(?string $tenant = null, string $mail, string $attachment, string $filename)

Check failure on line 11 in src/Controllers/MailDownloadController.php

View workflow job for this annotation

GitHub Actions / phpstan

Deprecated in PHP 8.0: Required parameter $attachment follows optional parameter $tenant.

Check failure on line 11 in src/Controllers/MailDownloadController.php

View workflow job for this annotation

GitHub Actions / phpstan

Deprecated in PHP 8.0: Required parameter $filename follows optional parameter $tenant.

Check failure on line 11 in src/Controllers/MailDownloadController.php

View workflow job for this annotation

GitHub Actions / phpstan

Deprecated in PHP 8.1: Required parameter $mail follows optional parameter $tenant.
{
/** @var MailAttachment $attachment */
$attachment = MailAttachment::find($attachment);
Expand All @@ -23,4 +23,4 @@ public function __invoke(string $tenant, string $mail, string $attachment, strin
]
);
}
}
}

0 comments on commit c03c55e

Please sign in to comment.