Skip to content

Commit 0ce1ce5

Browse files
committed
Use StubParser more
1 parent 7ed2d67 commit 0ce1ce5

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

conf/config.neon

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1944,7 +1944,7 @@ services:
19441944
stubPhpDocProvider:
19451945
class: PHPStan\PhpDoc\StubPhpDocProvider
19461946
arguments:
1947-
parser: @defaultAnalysisParser
1947+
parser: @stubParser
19481948

19491949
# Reflection providers
19501950

@@ -2045,6 +2045,12 @@ services:
20452045
php8Parser: @php8Parser
20462046
autowired: false
20472047

2048+
stubParser:
2049+
class: PHPStan\Parser\StubParser
2050+
arguments:
2051+
parser: @php8PhpParser
2052+
autowired: false
2053+
20482054
phpstanDiagnoseExtension:
20492055
class: PHPStan\Diagnose\PHPStanDiagnoseExtension
20502056
arguments:

conf/config.stubValidator.neon

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,8 @@ services:
1111
arguments:
1212
php8Parser: @php8PhpParser
1313

14-
defaultAnalysisParser:
15-
class: PHPStan\Parser\StubParser
16-
arguments!:
17-
parser: @php8PhpParser
18-
autowired: false
14+
defaultAnalysisParser!:
15+
factory: @stubParser
1916

2017
nodeScopeResolverReflector:
2118
factory: @stubReflector

0 commit comments

Comments
 (0)