Skip to content

Commit 21c2b5f

Browse files
committed
Latte: sets Tag::$node
1 parent e8641d8 commit 21c2b5f

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

composer.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,13 @@
2222
"require-dev": {
2323
"nette/tester": "^2.4",
2424
"nette/di": "^3.1 || ^4.0",
25-
"latte/latte": "^2.11 || ^3.0",
25+
"latte/latte": "^2.11 || ^3.0.12",
2626
"tracy/tracy": "^2.9",
2727
"phpstan/phpstan": "^1.0"
2828
},
29+
"conflict": {
30+
"latte/latte": ">=3.0.0 <3.0.12"
31+
},
2932
"suggest": {
3033
"ext-pdo_sqlite": "to use SQLiteStorage or SQLiteJournal"
3134
},

src/Bridges/CacheLatte/Nodes/CacheNode.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class CacheNode extends StatementNode
3030
/** @return \Generator<int, ?array, array{AreaNode, ?Tag}, static> */
3131
public static function create(Tag $tag): \Generator
3232
{
33-
$node = new static;
33+
$node = $tag->node = new static;
3434
$node->args = $tag->parser->parseArguments();
3535
[$node->content, $endTag] = yield;
3636
$node->endLine = $endTag?->position;

0 commit comments

Comments
 (0)