File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -300,7 +300,12 @@ public function changeParameterNamesByMapping(array $parameterNameMapping): self
300
300
continue ;
301
301
}
302
302
$ transformedType = TypeTraverser::map ($ paramTag ->getType (), $ mapParameterCb );
303
- $ newParamTags [$ parameterNameMapping [$ key ]] = $ paramTag ->withType ($ transformedType );
303
+ $ paramTag = $ paramTag ->withType ($ transformedType );
304
+ if ($ paramTag ->getClosureThisType () !== null ) {
305
+ $ transformedClosureThisType = TypeTraverser::map ($ paramTag ->getClosureThisType (), $ mapParameterCb );
306
+ $ paramTag = $ paramTag ->withClosureThisType ($ transformedClosureThisType );
307
+ }
308
+ $ newParamTags [$ parameterNameMapping [$ key ]] = $ paramTag ;
304
309
}
305
310
306
311
$ paramOutTags = $ this ->getParamOutTags ();
You can’t perform that action at this time.
0 commit comments