The method __construct() does not exist on Setono\TagBag\Tag\Tag. It seems like you code against a sub-type of Setono\TagBag\Tag\Tag such as Setono\TagBag\Tag\ContentTag or Setono\TagBag\Tag\PhpTemplatesTag.
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-call annotation
17
parent::/** @scrutinizer ignore-call */
18
__construct($key);
Loading history...
18
19
$this->template = $template;
20
}
21
22
public function getTemplate(): string
23
{
24
return $this->template;
25
}
26
27
public function getContext(): array
28
{
29
return $this->context;
30
}
31
32
public function setContext(array $context): self
33
{
34
$this->context = $context;
35
36
return $this;
37
}
38
39
/**
40
* @param mixed $value
41
*/
42
public function addContext(string $key, $value): self