Fix PHP 8 compat

This commit is contained in:
Fabien Potencier
2020-05-18 10:10:52 +02:00
parent b952011f95
commit 6a0ab744d2
13 changed files with 16 additions and 15 deletions
+1 -1
View File
@@ -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) {