File tree 3 files changed +7
-3
lines changed
3 files changed +7
-3
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
@@ -63,7 +65,9 @@ public function loadConfiguration()
63
65
->setFactory (Latte \Engine::class)
64
66
->addSetup ('setTempDirectory ' , [$ this ->tempDir ])
65
67
->addSetup ('setAutoRefresh ' , [$ this ->debugMode ])
66
- ->addSetup ('setStrictTypes ' , [$ config ->strictTypes ]);
68
+ ->addSetup ('setStrictTypes ' , [$ config ->strictTypes ])
69
+ ->addSetup ('setStrictParsing ' , [$ config ->strictParsing ])
70
+ ->addSetup ('enablePhpLinter ' , [$ config ->phpLinter ]);
67
71
68
72
if (version_compare (Latte \Engine::VERSION , '3 ' , '< ' )) {
69
73
$ latteFactory ->addSetup ('setContentType ' , [$ config ->xhtml ? Latte \Compiler::CONTENT_XHTML : Latte \Compiler::CONTENT_HTML ]);
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