Fix cache-extra impl

This commit is contained in:
Fabien Potencier
2025-02-14 11:27:48 +01:00
parent 1ea5ac600d
commit 4695e33f73
2 changed files with 2 additions and 2 deletions
@@ -35,7 +35,7 @@ class CacheTokenParser extends AbstractTokenParser
}
$stream->next();
$stream->expect(Token::PUNCTUATION_TYPE, '(');
$stream->expect(Token::OPERATOR_TYPE, '(');
$line = $stream->getCurrent()->getLine();
if ($stream->test(Token::PUNCTUATION_TYPE, ')')) {
throw new SyntaxError(\sprintf('The "%s" modifier takes exactly one argument (0 given).', $k), $line, $stream->getSourceContext());
+1 -1
View File
@@ -17,7 +17,7 @@
"require": {
"php": ">=8.1.0",
"symfony/cache": "^5.4|^6.4|^7.0",
"twig/twig": "^3.20|^4.0"
"twig/twig": "^3.21|^4.0"
},
"require-dev": {
"symfony/phpunit-bridge": "^6.4|^7.0"