mirror of
https://github.com/slawkens/myaac.git
synced 2025-10-15 02:04:54 +02:00
Update Twig to v2.15.4
This commit is contained in:
@@ -38,23 +38,23 @@ class IncludeTokenParser extends AbstractTokenParser
|
||||
$stream = $this->parser->getStream();
|
||||
|
||||
$ignoreMissing = false;
|
||||
if ($stream->nextIf(Token::NAME_TYPE, 'ignore')) {
|
||||
$stream->expect(Token::NAME_TYPE, 'missing');
|
||||
if ($stream->nextIf(/* Token::NAME_TYPE */ 5, 'ignore')) {
|
||||
$stream->expect(/* Token::NAME_TYPE */ 5, 'missing');
|
||||
|
||||
$ignoreMissing = true;
|
||||
}
|
||||
|
||||
$variables = null;
|
||||
if ($stream->nextIf(Token::NAME_TYPE, 'with')) {
|
||||
if ($stream->nextIf(/* Token::NAME_TYPE */ 5, 'with')) {
|
||||
$variables = $this->parser->getExpressionParser()->parseExpression();
|
||||
}
|
||||
|
||||
$only = false;
|
||||
if ($stream->nextIf(Token::NAME_TYPE, 'only')) {
|
||||
if ($stream->nextIf(/* Token::NAME_TYPE */ 5, 'only')) {
|
||||
$only = true;
|
||||
}
|
||||
|
||||
$stream->expect(Token::BLOCK_END_TYPE);
|
||||
$stream->expect(/* Token::BLOCK_END_TYPE */ 3);
|
||||
|
||||
return [$variables, $only, $ignoreMissing];
|
||||
}
|
||||
|
Reference in New Issue
Block a user