-
-
Notifications
You must be signed in to change notification settings - Fork 744
Expand file tree
/
Copy pathparser.neon
More file actions
43 lines (38 loc) · 1.51 KB
/
Copy pathparser.neon
File metadata and controls
43 lines (38 loc) · 1.51 KB
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
34
35
36
37
38
39
40
41
42
43
# see original config.neon in phpstan.neon - https://github.com/phpstan/phpstan-src/blob/386eb913abb6ac05886c5642fd48b5d99db66a20/conf/config.neon#L1582
# this file overrides definitions from the config above
services:
defaultAnalysisParser:
factory: @pathRoutingParser
arguments!: []
cachedRectorParser:
class: PHPStan\Parser\CachedParser
arguments:
originalParser: @rectorParser
cachedNodesByStringCountMax: %cache.nodesByStringCountMax%
autowired: false
pathRoutingParser:
class: PHPStan\Parser\PathRoutingParser
arguments:
currentPhpVersionRichParser: @cachedRectorParser
currentPhpVersionSimpleParser: @cachedRectorParser
php8Parser: @php8Parser
autowired: false
rectorParser:
class: PHPStan\Parser\RichParser
factory: @rectorRichParserFactory::create()
arguments!: []
autowired: no
# RichParser used directly by Rector, see PHPStanServicesFactory::createPHPStanParser()
currentPhpVersionRichParser:
class: PHPStan\Parser\RichParser
factory: @rectorRichParserFactory::create()
arguments!: []
autowired: no
rectorRichParserFactory:
class: Rector\DependencyInjection\PHPStan\RichParserFactory
arguments:
parser: @currentPhpVersionPhpParser
nodeVisitors:
- @PHPStan\Parser\AnonymousClassVisitor
- @PHPStan\Parser\ArrayMapArgVisitor
autowired: no