Skip to content

Commit

Permalink
Add specific type hints for $params
Browse files Browse the repository at this point in the history
Signed-off-by: Elan Ruusamäe <glen@pld-linux.org>
  • Loading branch information
glensc committed Jan 12, 2021
1 parent c1f2125 commit efe8e62
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/Storage/Imap.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

namespace Laminas\Mail\Storage;

use Laminas\Config\Config;
use Laminas\Mail;
use Laminas\Mail\Protocol;

Expand Down Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion src/Storage/Pop3.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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
*/
Expand Down

0 comments on commit efe8e62

Please sign in to comment.