Specify the type for $heade

When we would like to extend our class for the EMailTemplate, we have a PHP error about the type of the `$header` variable.

Because, the `$header` property is typed : db3c731b0e/lib/private/Mail/EMailTemplate.php (L97) .

Signed-off-by: Baptiste Fotia <fotia.baptiste@hotmail.com>
This commit is contained in:
Baptiste Fotia
2023-11-16 21:21:38 +01:00
committed by GitHub
parent 8ef1a5d9e7
commit c03a21deb2

View File

@@ -124,7 +124,7 @@ Let's assume that we need to override the email header::
class MyClass extends EMailTemplate
{
protected $header = <<<EOF
protected string $header = <<<EOF
<table align="center" class="wrapper">
// your theme email header modification
</table>