Skip to content

Commit a84b4b6

Browse files
committed
Latte: sets Tag::$node
1 parent 5ce42ed commit a84b4b6

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
@@ -21,10 +21,13 @@
2121
"require-dev": {
2222
"nette/tester": "^2.4",
2323
"nette/di": "^3.1 || ^4.0",
24-
"latte/latte": "^2.11 || ^3.0",
24+
"latte/latte": "^2.11 || ^3.0.12",
2525
"tracy/tracy": "^2.9",
2626
"phpstan/phpstan": "^1.0"
2727
},
28+
"conflict": {
29+
"latte/latte": ">=3.0.0 <3.0.12"
30+
},
2831
"suggest": {
2932
"ext-pdo_sqlite": "to use SQLiteStorage or SQLiteJournal"
3033
},

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)