Skip to content

Commit 428ef84

Browse files
committed
Separate FileTypeMapper for StubPhpDocProvider
1 parent 1aec430 commit 428ef84

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

conf/config.neon

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1032,6 +1032,12 @@ services:
10321032
arguments:
10331033
phpParser: @defaultAnalysisParser
10341034

1035+
stubFileTypeMapper:
1036+
class: PHPStan\Type\FileTypeMapper
1037+
arguments:
1038+
phpParser: @stubParser
1039+
autowired: false
1040+
10351041
-
10361042
class: PHPStan\Type\TypeAliasResolver
10371043
factory: PHPStan\Type\UsefulTypeAliasResolver
@@ -1945,6 +1951,7 @@ services:
19451951
class: PHPStan\PhpDoc\StubPhpDocProvider
19461952
arguments:
19471953
parser: @stubParser
1954+
fileTypeMapper: @stubFileTypeMapper
19481955

19491956
# Reflection providers
19501957

@@ -2045,12 +2052,19 @@ services:
20452052
php8Parser: @php8Parser
20462053
autowired: false
20472054

2048-
stubParser:
2055+
freshStubParser:
20492056
class: PHPStan\Parser\StubParser
20502057
arguments:
20512058
parser: @php8PhpParser
20522059
autowired: false
20532060

2061+
stubParser:
2062+
class: PHPStan\Parser\CachedParser
2063+
arguments:
2064+
originalParser: @freshStubParser
2065+
cachedNodesByStringCountMax: %cache.nodesByStringCountMax%
2066+
autowired: false
2067+
20542068
phpstanDiagnoseExtension:
20552069
class: PHPStan\Diagnose\PHPStanDiagnoseExtension
20562070
arguments:

0 commit comments

Comments
 (0)