Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/FolderInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ public function quota(): array;

/**
* Get the folder's status.
* @return array{'MESSAGES': string, 'RECENT': string, 'UIDNEXT': string, 'UIDVALIDITY': string, 'UNSEEN': string}

ghost Nov 13, 2026

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are we sure this is the case across all IMAP providers?

ghost Nov 14, 2026

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No. But since you're mentioning them at https://github.com/DirectoryTree/ImapEngine/blob/master/src/Connection/ConnectionInterface.php#L244 I was figuring that this would be some standard.
If not, what about @return array<string, string>? Or would it be possible that you convert the values to int, to get @return array<string, int>?

*/
public function status(): array;

Expand Down