Final Class Yiisoft\Mailer\HeadersNormalizer
| Inheritance | Yiisoft\Mailer\HeadersNormalizer |
|---|
Public Methods
| Method | Description | Defined By |
|---|---|---|
| normalize() | Yiisoft\Mailer\HeadersNormalizer |
Method Details
| public static ?array normalize ( ?array $headers ) | ||
| $headers | ?array | |
public static function normalize(?array $headers): ?array
{
if ($headers === null) {
return null;
}
return array_map(
static fn(string|array $value): array => (array) $value,
$headers,
);
}
Signup or Login in order to comment.