File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 6
6
use PHPStan \Analyser \IgnoredErrorHelper ;
7
7
use PHPStan \Analyser \ResultCache \ResultCacheManagerFactory ;
8
8
use PHPStan \Internal \BytesHelper ;
9
+ use PHPStan \PhpDoc \StubFilesProvider ;
9
10
use PHPStan \PhpDoc \StubValidator ;
10
11
use PHPStan \ShouldNotHappenException ;
11
12
use Symfony \Component \Console \Input \InputInterface ;
@@ -25,6 +26,7 @@ public function __construct(
25
26
private ResultCacheManagerFactory $ resultCacheManagerFactory ,
26
27
private IgnoredErrorHelper $ ignoredErrorHelper ,
27
28
private int $ internalErrorsCountLimit ,
29
+ private StubFilesProvider $ stubFilesProvider ,
28
30
)
29
31
{
30
32
}
@@ -67,10 +69,8 @@ public function analyse(
67
69
$ input ,
68
70
);
69
71
70
- $ projectStubFiles = [];
71
- if ($ projectConfigArray !== null ) {
72
- $ projectStubFiles = $ projectConfigArray ['parameters ' ]['stubFiles ' ] ?? [];
73
- }
72
+ $ projectStubFiles = $ this ->stubFilesProvider ->getStubFiles ();
73
+
74
74
if ($ resultCache ->isFullAnalysis () && count ($ projectStubFiles ) !== 0 ) {
75
75
$ stubErrors = $ this ->stubValidator ->validate ($ projectStubFiles , $ debug );
76
76
$ intermediateAnalyserResult = new AnalyserResult (
You can’t perform that action at this time.
0 commit comments