File tree 3 files changed +7
-2
lines changed
3 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 42
42
"nette/di" : " <3.0.7" ,
43
43
"nette/forms" : " <3.0" ,
44
44
"nette/schema" : " <1.2" ,
45
- "latte/latte" : " <2.7.1 || >=3.0.0 <3.0.5 || >=3.1" ,
45
+ "latte/latte" : " <2.7.1 || >=3.0.0 <3.0.8 || >=3.1" ,
46
46
"tracy/tracy" : " <2.5"
47
47
},
48
48
"autoload" : {
Original file line number Diff line number Diff line change @@ -44,6 +44,8 @@ public function getConfigSchema(): Nette\Schema\Schema
44
44
'extensions ' => Expect::arrayOf ('string|Nette\DI\Definitions\Statement ' ),
45
45
'templateClass ' => Expect::string (),
46
46
'strictTypes ' => Expect::bool (false ),
47
+ 'strictParsing ' => Expect::bool (false ),
48
+ 'phpLinter ' => Expect::string (),
47
49
]);
48
50
}
49
51
@@ -74,6 +76,9 @@ public function loadConfiguration()
74
76
$ this ->addMacro ($ macro );
75
77
}
76
78
} else {
79
+ $ latteFactory ->addSetup ('setStrictParsing ' , [$ config ->strictParsing ])
80
+ ->addSetup ('enablePhpLinter ' , [$ config ->phpLinter ]);
81
+
77
82
foreach ($ config ->extensions as $ extension ) {
78
83
$ this ->addExtension ($ extension );
79
84
}
Original file line number Diff line number Diff line change 11
11
12
12
use Latte ;
13
13
use Latte \Compiler \Escaper ;
14
- use Latte \Compiler \Nodes \Php \Expression \ ArrayItemNode ;
14
+ use Latte \Compiler \Nodes \Php \ArrayItemNode ;
15
15
use Latte \Compiler \Nodes \Php \Expression \ArrayNode ;
16
16
use Latte \Compiler \Nodes \Php \ExpressionNode ;
17
17
use Latte \Compiler \Nodes \Php \ModifierNode ;
You can’t perform that action at this time.
0 commit comments