Skip to content
Snippets Groups Projects
Commit 755e554d authored by Adam Shepherd's avatar Adam Shepherd
Browse files

git commit -m 'Issue #3253777 by balis_m, AdamPS: Notice: Undefined index: bcc...

git commit -m 'Issue #3253777 by balis_m, AdamPS: Notice: Undefined index: bcc in Drupal\symfony_mailer\Email->getParam()' --author="balis_m <balis_m@2664243.no-reply.drupal.org>"
parent 13460051
Branches
Tags
No related merge requests found
......@@ -89,7 +89,7 @@ interface BaseEmailInterface {
* Parameter key to get.
*
* @return mixed
* Parameter value.
* Parameter value, or NULL if the parameter is not set.
*/
public function getParam(string $key);
......
......@@ -298,7 +298,7 @@ class Email implements UnrenderedEmailInterface, RenderedEmailInterface {
* {@inheritdoc}
*/
public function getParam(string $key) {
return $this->params[$key];
return $this->params[$key] ?? NULL;
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment