We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 929599b + 5a30a2f commit d1b7e39Copy full SHA for d1b7e39
2 files changed
.github/workflows/main.yaml
@@ -12,7 +12,7 @@ jobs:
12
13
strategy:
14
matrix:
15
- php-versions: ['8.1', '8.2']
+ php-versions: ['8.1', '8.2', '8.3']
16
name: PHP ${{ matrix.php-versions }}
17
steps:
18
- uses: actions/checkout@v2
src/Twig/CodeGenerationExtension.php
@@ -8,6 +8,7 @@
8
9
use Doctrine\Inflector\InflectorFactory;
10
use Twig\Error\RuntimeError;
11
+use Twig\ExpressionParser\Prefix\LiteralExpressionParser;
use Twig\Extension\AbstractExtension;
use Twig\TwigFilter;
use Twig\TwigTest;
@@ -52,6 +53,11 @@ public function getTokenParsers(): array
52
53
return [new PerLineTokenParser()];
54
}
55
56
+ public function getExpressionParsers(): array
57
+ {
58
+ return [new LiteralExpressionParser()];
59
+ }
60
+
61
/**
62
* {@inheritdoc}
63
*/
0 commit comments