We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3276422 commit 937727eCopy full SHA for 937727e
src/Connection/ImapParser.php
@@ -45,13 +45,14 @@ public function __construct(ImapTokenizer $tokenizer)
45
*/
46
public function next(): Data|Token|Response|null
47
{
48
- // Load the first token.
+ // Attempt to load the first token.
49
if (! $this->currentToken) {
50
$this->advance();
51
}
52
53
+ // No token was found, return null.
54
- throw new ImapParserException('Empty response');
55
+ return null;
56
57
58
// If the token indicates the beginning of a list, parse it.
0 commit comments