Add UnaryInterface

This commit is contained in:
Fabien Potencier
2025-02-03 21:23:35 +01:00
parent 462eedd43f
commit 9ccca47b8a
2 changed files with 23 additions and 1 deletions
+1 -1
View File
@@ -16,7 +16,7 @@ use Twig\Compiler;
use Twig\Node\Expression\AbstractExpression;
use Twig\Node\Node;
abstract class AbstractUnary extends AbstractExpression
abstract class AbstractUnary extends AbstractExpression implements UnaryInterface
{
/**
* @param AbstractExpression $node
@@ -0,0 +1,22 @@
<?php
/*
* This file is part of Twig.
*
* (c) Fabien Potencier
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Twig\Node\Expression\Unary;
use Twig\Node\Expression\AbstractExpression;
/**
* @internal
*/
interface UnaryInterface
{
public function __construct(AbstractExpression $node, int $lineno);
}