-
Notifications
You must be signed in to change notification settings - Fork 1
/
phpstan.neon
33 lines (33 loc) · 1.34 KB
/
phpstan.neon
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
includes:
- vendor/phpstan/phpstan-nette/extension.neon
parameters:
fileExtensions:
- latte
services:
-
class: Latte\Engine
setup:
- setTempDirectory(%tempDir%/cache)
- setAutoRefresh()
- Nette\Bridges\ApplicationLatte\UIMacros::install(@self::getCompiler())
- Nette\Bridges\FormsLatte\FormMacros::install(@self::getCompiler())
- AppTests\PhpStan\PhpStanMacros::install(@self::getCompiler())
# - App\Core\Latte\CodeMacros::install(@self::getCompiler())
# - '?->onCompile[] = function ($engine) { ?($engine->getCompiler(), ?); }'(@self, App\Core\Latte\AssertMacros::install, TRUE)
@PHPStan\Parser\Parser:
factory: AppTests\PhpStan\PreprocessParser(
...,
PHPStan\Parser\CachedParser(
originalParser: @directParser
cachedNodesByFileCountMax: %cache.nodesByFileCountMax%
cachedNodesByStringCountMax: %cache.nodesByStringCountMax%
)
)
@PHPStan\Analyser\NodeScopeResolver:
factory: AppTests\PhpStan\NodeScopeResolver
arguments:
polluteScopeWithLoopInitialAssignments: %polluteScopeWithLoopInitialAssignments%
polluteCatchScopeWithTryAssignments: %polluteCatchScopeWithTryAssignments%
polluteScopeWithAlwaysIterableForeach: %polluteScopeWithAlwaysIterableForeach%
earlyTerminatingMethodCalls: %earlyTerminatingMethodCalls%
allowVarTagAboveStatements: %featureToggles.allowVarTagAboveStatements%