Skip to content

Commit 28fbd01

Browse files
committed
Latte: sets Tag::$node
1 parent 92b4a27 commit 28fbd01

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,12 @@
2424
"nette/application": "^3.0",
2525
"nette/di": "^3.0",
2626
"nette/tester": "^2.4",
27-
"latte/latte": "^2.10.2 || ^3.0.8",
27+
"latte/latte": "^2.10.2 || ^3.0.12",
2828
"tracy/tracy": "^2.9",
2929
"phpstan/phpstan-nette": "^1"
3030
},
3131
"conflict": {
32-
"latte/latte": ">=3.1"
32+
"latte/latte": ">=3.0.0 <3.0.12 || >=3.1"
3333
},
3434
"suggest": {
3535
"ext-intl": "to use date/time controls"

src/Bridges/FormsLatte/Nodes/FieldNNameNode.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ final class FieldNNameNode extends StatementNode
3535
public static function create(Tag $tag): \Generator
3636
{
3737
$tag->expectArguments();
38-
$node = new static;
38+
$node = $tag->node = new static;
3939
$node->name = $tag->parser->parseUnquotedStringOrExpression(colon: false);
4040
if ($tag->parser->stream->tryConsume(':')) {
4141
$node->part = $tag->parser->isEnd()

src/Bridges/FormsLatte/Nodes/FormContainerNode.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public static function create(Tag $tag): \Generator
3131
$tag->outputMode = $tag::OutputRemoveIndentation;
3232
$tag->expectArguments();
3333

34-
$node = new static;
34+
$node = $tag->node = new static;
3535
$node->name = $tag->parser->parseUnquotedStringOrExpression();
3636
[$node->content] = yield;
3737
return $node;

src/Bridges/FormsLatte/Nodes/FormNNameNode.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ final class FormNNameNode extends StatementNode
3131
public static function create(Tag $tag): \Generator
3232
{
3333
$tag->expectArguments();
34-
$node = new static;
34+
$node = $tag->node = new static;
3535
$node->name = $tag->parser->parseUnquotedStringOrExpression(colon: false);
3636
[$node->content] = yield;
3737
$node->init($tag);

src/Bridges/FormsLatte/Nodes/FormNode.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public static function create(Tag $tag): \Generator
4242

4343
$tag->outputMode = $tag::OutputKeepIndentation;
4444
$tag->expectArguments();
45-
$node = new static;
45+
$node = $tag->node = new static;
4646
$node->name = $tag->parser->parseUnquotedStringOrExpression();
4747
$tag->parser->stream->tryConsume(',');
4848
$node->attributes = $tag->parser->parseArguments();

src/Bridges/FormsLatte/Nodes/LabelNode.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public static function create(Tag $tag): \Generator
4343
$tag->outputMode = $tag::OutputKeepIndentation;
4444
$tag->expectArguments();
4545

46-
$node = new static;
46+
$node = $tag->node = new static;
4747
$node->name = $tag->parser->parseUnquotedStringOrExpression(colon: false);
4848
if ($tag->parser->stream->tryConsume(':')) {
4949
$node->part = $tag->parser->isEnd() || $tag->parser->stream->is(',')

0 commit comments

Comments
 (0)