55use PhpParser \Node ;
66use PHPStan \Analyser \Fiber \FiberScope ;
77use PHPStan \DependencyInjection \Container ;
8- use PHPStan \DependencyInjection \Type \DynamicReturnTypeExtensionRegistryProvider ;
98use PHPStan \DependencyInjection \Type \ExpressionTypeResolverExtensionRegistryProvider ;
109use PHPStan \Node \Printer \ExprPrinter ;
1110use PHPStan \Parser \Parser ;
@@ -28,13 +27,11 @@ public function __construct(
2827 private Container $ container ,
2928 private ReflectionProvider $ reflectionProvider ,
3029 private InitializerExprTypeResolver $ initializerExprTypeResolver ,
31- private DynamicReturnTypeExtensionRegistryProvider $ dynamicReturnTypeExtensionRegistryProvider ,
3230 private ExpressionTypeResolverExtensionRegistryProvider $ expressionTypeResolverExtensionRegistryProvider ,
3331 private ExprPrinter $ exprPrinter ,
3432 private TypeSpecifier $ typeSpecifier ,
3533 private PropertyReflectionFinder $ propertyReflectionFinder ,
3634 private Parser $ parser ,
37- private NodeScopeResolver $ nodeScopeResolver ,
3835 private PhpVersion $ phpVersion ,
3936 private AttributeReflectionFactory $ attributeReflectionFactory ,
4037 private int |array |null $ configPhpVersion ,
@@ -74,13 +71,11 @@ public function create(
7471 $ this ,
7572 $ this ->reflectionProvider ,
7673 $ this ->initializerExprTypeResolver ,
77- $ this ->dynamicReturnTypeExtensionRegistryProvider ->getRegistry (),
7874 $ this ->expressionTypeResolverExtensionRegistryProvider ->getRegistry (),
7975 $ this ->exprPrinter ,
8076 $ this ->typeSpecifier ,
8177 $ this ->propertyReflectionFinder ,
8278 $ this ->parser ,
83- $ this ->nodeScopeResolver ,
8479 $ this ->constantResolver ,
8580 $ context ,
8681 $ this ->phpVersion ,
@@ -111,13 +106,11 @@ public function toFiberFactory(): InternalScopeFactory
111106 $ this ->container ,
112107 $ this ->reflectionProvider ,
113108 $ this ->initializerExprTypeResolver ,
114- $ this ->dynamicReturnTypeExtensionRegistryProvider ,
115109 $ this ->expressionTypeResolverExtensionRegistryProvider ,
116110 $ this ->exprPrinter ,
117111 $ this ->typeSpecifier ,
118112 $ this ->propertyReflectionFinder ,
119113 $ this ->parser ,
120- $ this ->nodeScopeResolver ,
121114 $ this ->phpVersion ,
122115 $ this ->attributeReflectionFactory ,
123116 $ this ->configPhpVersion ,
@@ -133,13 +126,11 @@ public function toMutatingFactory(): InternalScopeFactory
133126 $ this ->container ,
134127 $ this ->reflectionProvider ,
135128 $ this ->initializerExprTypeResolver ,
136- $ this ->dynamicReturnTypeExtensionRegistryProvider ,
137129 $ this ->expressionTypeResolverExtensionRegistryProvider ,
138130 $ this ->exprPrinter ,
139131 $ this ->typeSpecifier ,
140132 $ this ->propertyReflectionFinder ,
141133 $ this ->parser ,
142- $ this ->nodeScopeResolver ,
143134 $ this ->phpVersion ,
144135 $ this ->attributeReflectionFactory ,
145136 $ this ->configPhpVersion ,
0 commit comments