Skip to content

Commit

Permalink
fixed deprecation under PHP 7.4
Browse files Browse the repository at this point in the history
  • Loading branch information
fabpot committed May 14, 2019
1 parent 1fb0f97 commit f958bd1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Node/Node.php
Expand Up @@ -40,7 +40,7 @@ public function __construct(array $nodes = [], array $attributes = [], $lineno =
{
foreach ($nodes as $name => $node) {
if (!$node instanceof \Twig_NodeInterface) {
@trigger_error(sprintf('Using "%s" for the value of node "%s" of "%s" is deprecated since version 1.25 and will be removed in 2.0.', \is_object($node) ? \get_class($node) : null === $node ? 'null' : \gettype($node), $name, \get_class($this)), E_USER_DEPRECATED);
@trigger_error(sprintf('Using "%s" for the value of node "%s" of "%s" is deprecated since version 1.25 and will be removed in 2.0.', \is_object($node) ? \get_class($node) : (null === $node ? 'null' : \gettype($node)), $name, \get_class($this)), E_USER_DEPRECATED);
}
}
$this->nodes = $nodes;
Expand Down

0 comments on commit f958bd1

Please sign in to comment.