You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/Node/Node.php
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -40,7 +40,7 @@ public function __construct(array $nodes = [], array $attributes = [], int $line
40
40
{
41
41
foreach ($nodesas$name => $node) {
42
42
if (!$nodeinstanceof self) {
43
-
thrownew \InvalidArgumentException(sprintf('Using "%s" for the value of node "%s" of "%s" is not supported. You must pass a \Twig\Node\Node instance.', \is_object($node) ? \get_class($node) : (null === $node ? 'null' : \gettype($node)), $name, \get_class($this)));
43
+
thrownew \InvalidArgumentException(sprintf('Using "%s" for the value of node "%s" of "%s" is not supported. You must pass a \Twig\Node\Node instance.', \is_object($node) ? \get_class($node) : (null === $node ? 'null' : \gettype($node)), $name, static::class));
44
44
}
45
45
}
46
46
$this->nodes = $nodes;
@@ -142,7 +142,7 @@ public function hasNode($name)
142
142
publicfunctiongetNode($name)
143
143
{
144
144
if (!isset($this->nodes[$name])) {
145
-
thrownew \LogicException(sprintf('Node "%s" does not exist for Node "%s".', $name, \get_class($this)));
145
+
thrownew \LogicException(sprintf('Node "%s" does not exist for Node "%s".', $name, static::class));
0 commit comments