mirror of
https://github.com/twigphp/Twig.git
synced 2026-10-10 22:05:44 +00:00
Fix PHP 8 compat
This commit is contained in:
@@ -20,7 +20,7 @@ use Twig\Compiler;
|
||||
*/
|
||||
class WithNode extends Node
|
||||
{
|
||||
public function __construct(Node $body, Node $variables = null, $only = false, $lineno, $tag = null)
|
||||
public function __construct(Node $body, ?Node $variables, $only, $lineno, $tag = null)
|
||||
{
|
||||
$nodes = ['body' => $body];
|
||||
if (null !== $variables) {
|
||||
|
||||
Reference in New Issue
Block a user