make SensioTemlateTagValue open to nullable valubes

This commit is contained in:
Tomas Votruba 2019-10-08 17:06:51 +01:00
parent 76cf03b092
commit a38b60bf27

View File

@ -23,20 +23,20 @@ final class SensioTemplateTagValueNode extends AbstractTagValueNode
private $template;
/**
* @var mixed[]
* @var mixed[]|null
*/
private $owner = [];
private $owner;
/**
* @var mixed[]
* @var mixed[]|null
*/
private $vars = [];
private $vars;
/**
* @param mixed[] $owner
* @param mixed[] $vars
* @param mixed[]|null $owner
* @param mixed[]|null $vars
*/
public function __construct(?string $template, array $owner, array $vars)
public function __construct(?string $template, ?array $owner = null, ?array $vars = null)
{
$this->template = $template;
$this->owner = $owner;