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
@@ -22,10 +22,7 @@ use Twig\Node\Node;
*/
class BlockReferenceExpression extends AbstractExpression
{
/**
* @param Node|null $template
*/
public function __construct(\Twig_NodeInterface $name, $template = null, $lineno, $tag = null)
public function __construct(\Twig_NodeInterface $name, ?Node $template, $lineno, $tag = null)
{
if (\is_bool($template)) {
@trigger_error(sprintf('The %s method "$asString" argument is deprecated since version 1.28 and will be removed in 2.0.', __METHOD__), E_USER_DEPRECATED);