From d420ad2699a369d60cb9871783d51cbe3095cb2b Mon Sep 17 00:00:00 2001 From: deepvision7 Date: Sun, 24 Dec 2023 01:55:41 +0200 Subject: [PATCH] Fixing () must be of type int in imap_delete() - resolves #349 (#353) Co-authored-by: taras --- src/Instagram/Auth/Checkpoint/ImapClient.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Instagram/Auth/Checkpoint/ImapClient.php b/src/Instagram/Auth/Checkpoint/ImapClient.php index 8b7caf5..669ab27 100644 --- a/src/Instagram/Auth/Checkpoint/ImapClient.php +++ b/src/Instagram/Auth/Checkpoint/ImapClient.php @@ -136,7 +136,7 @@ public function getLastInstagramEmailContent(int $try = 1): string } if ($isMailFromInstagram && isset($match[1])) { - imap_delete($resource, $i); + imap_delete($resource, "$i"); $foundCode = true; $code = $match[1];