We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6bb202c commit 110cbfaCopy full SHA for 110cbfa
1 file changed
src/Reflection/ReflectionResolver.php
@@ -191,7 +191,7 @@ public function resolveMethodReflectionFromMethodCall(MethodCall $methodCall): ?
191
}
192
193
public function resolveFunctionLikeReflectionFromCall(
194
- MethodCall|FuncCall|StaticCall $call
+ MethodCall|FuncCall|StaticCall|New_ $call
195
): MethodReflection | FunctionReflection | null {
196
if ($call instanceof MethodCall) {
197
return $this->resolveMethodReflectionFromMethodCall($call);
@@ -201,6 +201,10 @@ public function resolveFunctionLikeReflectionFromCall(
201
return $this->resolveMethodReflectionFromStaticCall($call);
202
203
204
+ if ($call instanceof New_) {
205
+ return $this->resolveMethodReflectionFromNew($call);
206
+ }
207
+
208
return $this->resolveFunctionReflectionFromFuncCall($call);
209
210
0 commit comments