File tree 1 file changed +3
-7
lines changed
src/Bridges/FormsLatte/Nodes
1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change 9
9
10
10
namespace Nette \Bridges \FormsLatte \Nodes ;
11
11
12
- use Latte \Compiler \Nodes \Php \Expression \VariableNode ;
13
12
use Latte \Compiler \Nodes \Php \ExpressionNode ;
14
13
use Latte \Compiler \Nodes \StatementNode ;
15
14
use Latte \Compiler \PrintContext ;
@@ -27,13 +26,10 @@ class InputErrorNode extends StatementNode
27
26
public static function create (Tag $ tag ): static
28
27
{
29
28
$ tag ->outputMode = $ tag ::OutputKeepIndentation;
29
+ $ tag ->expectArguments ();
30
+
30
31
$ 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 ();
37
33
return $ node ;
38
34
}
39
35
You can’t perform that action at this time.
0 commit comments