From fe86ca0dd7d7aaf10761a1e44f17fc6e208f9a6c Mon Sep 17 00:00:00 2001 From: johnnyq Date: Thu, 17 Oct 2024 23:33:53 -0400 Subject: [PATCH] Bump php-mime-mail-parser from 8.0 to 8.0.4 --- plugins/php-mime-mail-parser/Parser.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/php-mime-mail-parser/Parser.php b/plugins/php-mime-mail-parser/Parser.php index 94c2a300..7f8a1de9 100644 --- a/plugins/php-mime-mail-parser/Parser.php +++ b/plugins/php-mime-mail-parser/Parser.php @@ -139,7 +139,7 @@ class Parser { // streams have to be cached to file first $meta = @stream_get_meta_data($stream); - if (!$meta || !$meta['mode'] || !in_array($meta['mode'], self::$readableModes, true) || $meta['eof']) { + if (!$meta || !$meta['mode'] || !in_array($meta['mode'], self::$readableModes, true)) { throw new Exception( 'setStream() expects parameter stream to be readable stream resource.' ); @@ -224,7 +224,7 @@ class Parser * * @param string $name Header name (case-insensitive) * - * @return string|array|bool + * @return string|bool * @throws Exception */ public function getRawHeader($name) @@ -446,11 +446,11 @@ class Parser } /** - * Return an array of associative arrays with the following keys `display`, `address`, `is_group` + * Return an array with the following keys display, address, is_group * * @param string $name Header name (case-insensitive) * - * @return array + * @return array */ public function getAddresses($name) {