File tree 1 file changed +2
-4
lines changed
1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -266,9 +266,8 @@ public static function selectFromArgs(
266
266
if ((new ObjectType (Closure::class))->isSuperTypeOf ($ varType )->yes ()) {
267
267
$ inFunction = $ scope ->getFunction ();
268
268
if ($ inFunction !== null ) {
269
- $ inFunctionVariant = self ::selectSingle ($ inFunction ->getVariants ());
270
269
$ closureThisParameters = [];
271
- foreach ($ inFunctionVariant ->getParameters () as $ parameter ) {
270
+ foreach ($ inFunction ->getParameters () as $ parameter ) {
272
271
if ($ parameter ->getClosureThisType () === null ) {
273
272
continue ;
274
273
}
@@ -310,9 +309,8 @@ public static function selectFromArgs(
310
309
$ closureVarName = $ args [0 ]->value ->name ;
311
310
$ inFunction = $ scope ->getFunction ();
312
311
if ($ inFunction !== null ) {
313
- $ inFunctionVariant = self ::selectSingle ($ inFunction ->getVariants ());
314
312
$ closureThisParameters = [];
315
- foreach ($ inFunctionVariant ->getParameters () as $ parameter ) {
313
+ foreach ($ inFunction ->getParameters () as $ parameter ) {
316
314
if ($ parameter ->getClosureThisType () === null ) {
317
315
continue ;
318
316
}
You can’t perform that action at this time.
0 commit comments