@@ -165,7 +165,7 @@ class Mailbox
165165 /**
166166 * @throws InvalidParameterException
167167 */
168- public function __construct (string $ imapPath , string $ login , string $ password , string $ attachmentsDir = null , string $ serverEncoding = 'UTF-8 ' , bool $ trimImapPath = true , bool $ attachmentFilenameMode = false )
168+ public function __construct (string $ imapPath , string $ login , string $ password , ? string $ attachmentsDir = null , string $ serverEncoding = 'UTF-8 ' , bool $ trimImapPath = true , bool $ attachmentFilenameMode = false )
169169 {
170170 $ this ->imapPath = (true == $ trimImapPath ) ? \trim ($ imapPath ) : $ imapPath ;
171171 $ this ->imapLogin = \trim ($ login );
@@ -380,7 +380,7 @@ public function getLogin(): string
380380 *
381381 * @throws InvalidParameterException
382382 */
383- public function setConnectionArgs (int $ options = 0 , int $ retriesNum = 0 , array $ params = null ): void
383+ public function setConnectionArgs (int $ options = 0 , int $ retriesNum = 0 , array ? $ params = null ): void
384384 {
385385 if (0 !== $ options ) {
386386 if (($ options & self ::IMAP_OPTIONS_SUPPORTED_VALUES ) !== $ options ) {
@@ -1020,7 +1020,7 @@ public function sortMails(
10201020 int $ criteria = SORTARRIVAL ,
10211021 bool $ reverse = true ,
10221022 ?string $ searchCriteria = 'ALL ' ,
1023- string $ charset = null
1023+ ? string $ charset = null
10241024 ): array {
10251025 return Imap::sort (
10261026 $ this ->getImapStream (),
@@ -1634,8 +1634,8 @@ public function unsubscribeMailbox(string $mailbox): void
16341634 public function appendMessageToMailbox (
16351635 $ message ,
16361636 string $ mailbox = '' ,
1637- string $ options = null ,
1638- string $ internal_date = null
1637+ ? string $ options = null ,
1638+ ? string $ internal_date = null
16391639 ): bool {
16401640 if (
16411641 \is_array ($ message ) &&
0 commit comments