mirror of https://github.com/itflow-org/itflow
Bump php-mime-mail-parser from 8.0 to 8.0.4
This commit is contained in:
parent
77ed7aa7ff
commit
fe86ca0dd7
|
|
@ -139,7 +139,7 @@ class Parser
|
||||||
{
|
{
|
||||||
// streams have to be cached to file first
|
// streams have to be cached to file first
|
||||||
$meta = @stream_get_meta_data($stream);
|
$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(
|
throw new Exception(
|
||||||
'setStream() expects parameter stream to be readable stream resource.'
|
'setStream() expects parameter stream to be readable stream resource.'
|
||||||
);
|
);
|
||||||
|
|
@ -224,7 +224,7 @@ class Parser
|
||||||
*
|
*
|
||||||
* @param string $name Header name (case-insensitive)
|
* @param string $name Header name (case-insensitive)
|
||||||
*
|
*
|
||||||
* @return string|array|bool
|
* @return string|bool
|
||||||
* @throws Exception
|
* @throws Exception
|
||||||
*/
|
*/
|
||||||
public function getRawHeader($name)
|
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)
|
* @param string $name Header name (case-insensitive)
|
||||||
*
|
*
|
||||||
* @return array<int, array{'display':string, 'address':string, 'is_group':bool}>
|
* @return array
|
||||||
*/
|
*/
|
||||||
public function getAddresses($name)
|
public function getAddresses($name)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue