diff --git a/src/MailPanel.php b/src/MailPanel.php index 49a0411..3be0364 100644 --- a/src/MailPanel.php +++ b/src/MailPanel.php @@ -182,7 +182,7 @@ private function tryHandleRequest(): void $this->handleSource($messageId); } elseif ($action === 'attachment' && is_string($messageId) && ctype_digit($attachmentId)) { - $this->handleAttachment($messageId, $attachmentId); + $this->handleAttachment($messageId, (int) $attachmentId); } elseif ($action === 'delete-one' && is_string($messageId)) { $this->handleDeleteOne($messageId);