Skip to content

Commit

Permalink
Latte: sets Tag::$node
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Dec 5, 2023
1 parent 0b3eef1 commit 589abae
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion composer.json
Expand Up @@ -22,10 +22,13 @@
"require-dev": {
"nette/tester": "^2.4",
"nette/di": "^3.1 || ^4.0",
"latte/latte": "^2.11 || ^3.0",
"latte/latte": "^2.11 || ^3.0.12",
"tracy/tracy": "^2.9",
"phpstan/phpstan": "^1.0"
},
"conflict": {
"latte/latte": ">=3.0.0 <3.0.12"
},
"suggest": {
"ext-pdo_sqlite": "to use SQLiteStorage or SQLiteJournal"
},
Expand Down
2 changes: 1 addition & 1 deletion src/Bridges/CacheLatte/Nodes/CacheNode.php
Expand Up @@ -30,7 +30,7 @@ class CacheNode extends StatementNode
/** @return \Generator<int, ?array, array{AreaNode, ?Tag}, static> */
public static function create(Tag $tag): \Generator
{
$node = new static;
$node = $tag->node = new static;
$node->args = $tag->parser->parseArguments();
[$node->content, $endTag] = yield;
$node->endLine = $endTag?->position;
Expand Down

0 comments on commit 589abae

Please sign in to comment.