Skip to content

Commit d1b7e39

Browse files
Merge pull request #83 from FlorisTurkenburg/php83-and-fix-test
Fix latest build and add PHP8.3 CI build
2 parents 929599b + 5a30a2f commit d1b7e39

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

.github/workflows/main.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212

1313
strategy:
1414
matrix:
15-
php-versions: ['8.1', '8.2']
15+
php-versions: ['8.1', '8.2', '8.3']
1616
name: PHP ${{ matrix.php-versions }}
1717
steps:
1818
- uses: actions/checkout@v2

src/Twig/CodeGenerationExtension.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
use Doctrine\Inflector\InflectorFactory;
1010
use Twig\Error\RuntimeError;
11+
use Twig\ExpressionParser\Prefix\LiteralExpressionParser;
1112
use Twig\Extension\AbstractExtension;
1213
use Twig\TwigFilter;
1314
use Twig\TwigTest;
@@ -52,6 +53,11 @@ public function getTokenParsers(): array
5253
return [new PerLineTokenParser()];
5354
}
5455

56+
public function getExpressionParsers(): array
57+
{
58+
return [new LiteralExpressionParser()];
59+
}
60+
5561
/**
5662
* {@inheritdoc}
5763
*/

0 commit comments

Comments
 (0)