mirror of
https://github.com/twigphp/Twig.git
synced 2026-10-26 21:55:57 +00:00
Fix PHP 8 compat
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user