Constructor changing type hint

This commit is contained in:
2020-04-28 18:07:20 +02:00
parent f1da79c869
commit f29b5a8854
2 changed files with 16 additions and 9 deletions

View File

@@ -7,7 +7,7 @@ class BMailTemplate implements \JsonSerializable
/**
* The template for the message
*
* @var integer
* @var string
*/
public $template;
@@ -39,7 +39,7 @@ class BMailTemplate implements \JsonSerializable
*/
public $parameters = [];
public function __construct(int $template)
public function __construct(string $template)
{
$this->template = $template;
}