Skip to content

Commit

Permalink
Merge branch '3.x' into 4.x
Browse files Browse the repository at this point in the history
* 3.x:
  Fix cache-extra impl
  • Loading branch information
fabpot committed Feb 14, 2025
2 parents 892e0bd + 613d6b9 commit 69b191f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion extra/cache-extra/TokenParser/CacheTokenParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public function parse(Token $token): Node
}

$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());
Expand Down
2 changes: 1 addition & 1 deletion extra/cache-extra/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"require": {
"php": ">=8.2",
"symfony/cache": "^5.4|^6.4|^7.0",
"twig/twig": "^3.20|^4.0"
"twig/twig": "^3.21|^4.0"
},
"autoload": {
"psr-4" : { "Twig\\Extra\\Cache\\" : "" },
Expand Down

0 comments on commit 69b191f

Please sign in to comment.