Fix bad merge

This commit is contained in:
Fabien Potencier
2025-02-21 18:57:07 +01:00
parent 4d9388dbe0
commit bec890f02f
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -124,7 +124,7 @@ class Error extends \Exception
}
if ($this->source && $this->source->getName()) {
$this->message .= \sprintf(' in %s', $this->source->getName());
$this->message .= \sprintf(' in "%s"', $this->source->getName());
}
if ($this->lineno && $this->lineno >= 0) {
@@ -14,9 +14,10 @@ namespace Twig\Node\Expression\Variable;
use Twig\Compiler;
use Twig\Node\Expression\AbstractExpression;
use Twig\Node\Expression\SupportDefinedTestDeprecationTrait;
use Twig\Node\Expression\SupportDefinedTestInterface;
use Twig\Node\Expression\SupportDefinedTestTrait;
class ContextVariable extends AbstractExpression
class ContextVariable extends AbstractExpression implements SupportDefinedTestInterface
{
use SupportDefinedTestDeprecationTrait;
use SupportDefinedTestTrait;