Skip to content

Commit df90cd7

Browse files
committed
latte 3.1.5 wip
1 parent 3bce4d3 commit df90cd7

2 files changed

Lines changed: 3 additions & 6 deletions

File tree

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,14 @@
2424
"nette/application": "^3.2",
2525
"nette/di": "^3.2",
2626
"nette/tester": "^2.6",
27-
"latte/latte": "^3.1.4",
27+
"latte/latte": "^3.1.5",
2828
"tracy/tracy": "^2.12",
2929
"phpstan/phpstan": "^2.1@stable",
3030
"phpstan/extension-installer": "^1.4@stable",
3131
"nette/phpstan-rules": "^1.0"
3232
},
3333
"conflict": {
34-
"latte/latte": "<3.1.4 || >=3.2"
34+
"latte/latte": "<3.1.5 || >=3.2"
3535
},
3636
"suggest": {
3737
"ext-intl": "to use date/time controls"

src/Bridges/FormsLatte/Nodes/FormNode.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,7 @@ public static function create(Tag $tag): \Generator
5151
default => null,
5252
};
5353
$node->name = $tag->parser->parseUnquotedStringOrExpression();
54-
if (!$tag->parser->stream->tryConsume(',') && !$tag->parser->isEnd()) {
55-
$position = $tag->parser->stream->peek()->position;
56-
trigger_error("Missing comma before arguments in {{$tag->name}} tag $position.", E_USER_DEPRECATED);
57-
}
54+
$tag->parser->consumeCommaBeforeArguments($tag->name);
5855
$node->attributes = $tag->parser->parseArguments();
5956
if ($node->mode !== null && $node->mode !== self::ModeDetached && $node->attributes->items) {
6057
$label = '{' . $tag->name . ($node->mode === self::ModeScope ? ' scope' : '') . '}';

0 commit comments

Comments
 (0)