Bump php-mime-mail-parser from 8.0 to 8.0.4

This commit is contained in:
johnnyq 2024-10-17 23:33:53 -04:00
parent 77ed7aa7ff
commit fe86ca0dd7
1 changed files with 4 additions and 4 deletions

View File

@ -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<int, array{'display':string, 'address':string, 'is_group':bool}>
* @return array
*/
public function getAddresses($name)
{