Skip to content
Snippets Groups Projects
Commit 7c27e892 authored by aaron.ferris's avatar aaron.ferris Committed by Wayne Eaker
Browse files

Issue #3432768: Type cast issues when running with PHP 8.2

parent 486f1d1b
Branches
Tags
1 merge request!19Issue #3432768: use an empty string instead of null
......@@ -268,7 +268,7 @@ class SymfonyMailer implements MailInterface, ContainerFactoryPluginInterface {
$this->normalizeHeaders($message);
if (!empty($message['headers']) && is_array($message['headers'])) {
foreach ($message['headers'] as $header_key => $header_value) {
if (empty($header_key) || in_array($header_key, $headers_to_skip, FALSE)) {
if (empty($header_value) || empty($header_key) || in_array($header_key, $headers_to_skip, FALSE)) {
continue;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment