mirror of
https://github.com/twigphp/Twig.git
synced 2026-10-08 04:45:47 +00:00
Fix typo in CacheTokenParser.php
This commit is contained in:
committed by
Andrej Hudec
parent
ed29f0010f
commit
49bac0b137
@@ -41,7 +41,7 @@ class CacheTokenParser extends AbstractTokenParser
|
||||
break;
|
||||
case 'tags':
|
||||
if (1 !== \count($args)) {
|
||||
throw new SyntaxError(sprintf('The "ttl" modifier takes exactly one argument (%d given).', \count($args)), $stream->getCurrent()->getLine(), $stream->getSourceContext());
|
||||
throw new SyntaxError(sprintf('The "tags" modifier takes exactly one argument (%d given).', \count($args)), $stream->getCurrent()->getLine(), $stream->getSourceContext());
|
||||
}
|
||||
$tags = $args->getNode(0);
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user