You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Optional parameter $bcc declared before required parameter $body is implicitly treated as a required parameter at /var/www/nextcloud/apps/mail/lib/Model/NewMessageData.php#120
#9654
Closed
dustbro opened this issue
May 17, 2024
· 1 comment
Steps to reproduce
public static function fromRequest(Account $account,
?string $to = null,
?string $cc = null,
?string $bcc = null,
string $subject,
string $body,
array $attachments = [],
bool $isHtml = true,
bool $requestMdn = false,
?int $smimeCertificateId = null,
bool $smimeSign = false,
bool $smimeEncrypt = false): NewMessageData {
$toList = AddressList::parse($to ?: '');
$ccList = AddressList::parse($cc ?: '');
$bccList = AddressList::parse($bcc ?: '');
Expected behavior
optional parameters are declared after all required parameters
Actual behavior
optional parameters are declared before all required parameters
Mail app version
3.6.1
Mailserver or service
DirectNic
Operating system
Ubuntu 22.04
PHP engine version
Other
Web server
Apache (supported)
Database
MariaDB
Additional info
PHP 8.3.7
The text was updated successfully, but these errors were encountered: