File tree Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change 21
21
"nette/utils" : " dev-master as 3.1.99" ,
22
22
"nikic/php-parser" : " 4.7.0" ,
23
23
"ondram/ci-detector" : " ^3.4.0" ,
24
- "ondrejmirtes/better-reflection" : " 4.3.23 " ,
24
+ "ondrejmirtes/better-reflection" : " 4.3.24 " ,
25
25
"phpdocumentor/reflection-docblock" : " 4.3.4" ,
26
26
"phpstan/phpdoc-parser" : " ^0.4.8" ,
27
27
"react/child-process" : " ^0.6.1" ,
Original file line number Diff line number Diff line change 7
7
use PHPStan \Broker \Broker ;
8
8
use PHPStan \Command \CommandHelper ;
9
9
use PHPStan \File \FileHelper ;
10
+ use Roave \BetterReflection \BetterReflection ;
11
+ use Roave \BetterReflection \SourceLocator \SourceStubber \PhpStormStubsSourceStubber ;
10
12
11
13
class ContainerFactory
12
14
{
@@ -97,6 +99,16 @@ public function create(
97
99
98
100
$ container = $ configurator ->createContainer ();
99
101
102
+ // @phpstan-ignore-next-line
103
+ BetterReflection::populate (
104
+ $ container ->getService ('betterReflectionSourceLocator ' ),
105
+ $ container ->getService ('betterReflectionClassReflector ' ),
106
+ $ container ->getService ('betterReflectionFunctionReflector ' ),
107
+ $ container ->getService ('betterReflectionConstantReflector ' ),
108
+ $ container ->getService ('phpParserDecorator ' ),
109
+ $ container ->getByType (PhpStormStubsSourceStubber::class)
110
+ );
111
+
100
112
/** @var Broker $broker */
101
113
$ broker = $ container ->getByType (Broker::class);
102
114
Broker::registerInstance ($ broker );
You can’t perform that action at this time.
0 commit comments