File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed
src/Bridges/FormsLatte/Nodes Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change 99
1010namespace Nette \Bridges \FormsLatte \Nodes ;
1111
12- use Latte \Compiler \Nodes \Php \Expression \VariableNode ;
1312use Latte \Compiler \Nodes \Php \ExpressionNode ;
1413use Latte \Compiler \Nodes \StatementNode ;
1514use Latte \Compiler \PrintContext ;
@@ -27,13 +26,10 @@ class InputErrorNode extends StatementNode
2726 public static function create (Tag $ tag ): static
2827 {
2928 $ tag ->outputMode = $ tag ::OutputKeepIndentation;
29+ $ tag ->expectArguments ();
30+
3031 $ node = new static ;
31- if ($ tag ->parser ->isEnd ()) {
32- trigger_error ("Missing argument in {inputError} (on line {$ tag ->position ->line }) " , E_USER_DEPRECATED );
33- $ node ->name = new VariableNode ('ʟ_input ' );
34- } else {
35- $ node ->name = $ tag ->parser ->parseUnquotedStringOrExpression ();
36- }
32+ $ node ->name = $ tag ->parser ->parseUnquotedStringOrExpression ();
3733 return $ node ;
3834 }
3935
You can’t perform that action at this time.
0 commit comments