mirror of
https://github.com/twigphp/Twig.git
synced 2026-08-30 12:06:56 +00:00
Fix cache-extra impl
This commit is contained in:
@@ -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());
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user