Skip to content

Commit

Permalink
prepare release
Browse files Browse the repository at this point in the history
  • Loading branch information
jakubtobiasz committed Apr 19, 2024
1 parent f296faa commit 23970ff
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/TwigHooks/src/Twig/Node/HookNode.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ final class HookNode extends Node
public function __construct (
Node $hookNames,
?Node $parameters,

int $lineno,
string $tag = null
) {
Expand Down
5 changes: 5 additions & 0 deletions src/TwigHooks/src/Twig/TokenParser/HookTokenParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@ public function parse(Token $token): Node
$variables = $this->parser->getExpressionParser()->parseMultitargetExpression();
}

$disablePassthrough = false;
if ($stream->nextIf(Token::NAME_TYPE, 'disablePassthrough')) {
$disablePassthrough = true;
}

$stream->expect(Token::BLOCK_END_TYPE);

return new HookNode($hookNames, $variables, $lineno, $this->getTag());
Expand Down

0 comments on commit 23970ff

Please sign in to comment.