From c96798a6e4febb7696a40aaa3dfaed009870f378 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elan=20Ruusam=C3=A4e?= Date: Tue, 12 Jan 2021 20:17:36 +0200 Subject: [PATCH] Add specific type hints for $params MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Elan Ruusamäe --- src/Storage/Imap.php | 3 ++- src/Storage/Pop3.php | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Storage/Imap.php b/src/Storage/Imap.php index d5b90dd5..eea1280f 100644 --- a/src/Storage/Imap.php +++ b/src/Storage/Imap.php @@ -8,6 +8,7 @@ namespace Laminas\Mail\Storage; +use Laminas\Config\Config; use Laminas\Mail; use Laminas\Mail\Protocol; @@ -180,7 +181,7 @@ public function getRawContent($id, $part = null) * - ssl 'SSL' or 'TLS' for secure sockets * - folder select this folder [optional, default = 'INBOX'] * - * @param array|Protocol\Imap $params mail reader specific parameters or configured Imap protocol object + * @param array|object|Config|Protocol\Imap $params mail reader specific parameters or configured Imap protocol object * @throws Exception\RuntimeException * @throws Exception\InvalidArgumentException * @throws Protocol\Exception\RuntimeException diff --git a/src/Storage/Pop3.php b/src/Storage/Pop3.php index ac1dbff6..b8f49bec 100644 --- a/src/Storage/Pop3.php +++ b/src/Storage/Pop3.php @@ -8,6 +8,7 @@ namespace Laminas\Mail\Storage; +use Laminas\Config\Config; use Laminas\Mail\Exception as MailException; use Laminas\Mail\Protocol; use Laminas\Mime; @@ -121,7 +122,7 @@ public function getRawContent($id, $part = null) * - port port for POP3 server [optional, default = 110] * - ssl 'SSL' or 'TLS' for secure sockets * - * @param array|Protocol\Pop3 $params mail reader specific parameters or configured Pop3 protocol object + * @param array|object|Config|Protocol\Pop3 $params mail reader specific parameters or configured Pop3 protocol object * @throws \Laminas\Mail\Storage\Exception\InvalidArgumentException * @throws \Laminas\Mail\Protocol\Exception\RuntimeException */