-
-
Notifications
You must be signed in to change notification settings - Fork 21
Description
When attempting to save a message to the mailbox using append() and storing a $flag as a string, an error message appears:
DirectoryTree\\ImapEngine\\Connection\\ImapConnection::append(): Argument #3 ($flags) must be of type ?array, string given
MessageQueryInterface append() has mixed as its type, while ImapConnection requires an array.
MessageQuery should be able to convert the string into the required array but the Str::enums() returns back string if a string will be inserted
Code:
$mailbox
->folders()
->findOrFail($dsn->getFolderPath())
->messages()
->append($message->toString()."\r\n", ImapFlag::Seen)
;Environment
- PHP version: 8.2
- ImapEngine version: latest
- IMAP server: own
IMAP logs
Metadata
Metadata
Assignees
Labels
No labels