Skip to content

PHP 8.0 , Error fetching Inbox : $query->unseen()->markAsRead()->all()->get() #224

@kstych

Description

@kstych

Hi this is happening ( #98 (comment) )

In the Code here : https://github.com/Webklex/php-imap/blob/master/src/Connection/Protocols/ImapProtocol.php#L624

$tokens[2][$uidKey] is an empty Array [] and it break the code with error TypeError : Illegal offset type

I first made the inbox empty, which passed as no messages returned.. then i sent one mail and the code broke. the message appears to be fine in the inbox

Please help with any pointers, thankyou
Originally posted by @kstych in #98 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions