File tree Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -574,6 +574,27 @@ private function compareFunctions(Node\FunctionLike $old, Node\FunctionLike $new
574
574
}
575
575
}
576
576
577
+ $ oldPhpDocParameters = [];
578
+ $ newPhpDocParameters = [];
579
+ if ($ old ->getDocComment () !== null ) {
580
+ $ oldPhpDocNode = $ this ->parseDocComment ($ old ->getDocComment ()->getText ());
581
+ $ oldParamTags = $ oldPhpDocNode ->getParamTagValues ();
582
+ foreach ($ oldParamTags as $ paramTag ) {
583
+ $ oldPhpDocParameters [$ paramTag ->parameterName ] = $ paramTag ->__toString ();
584
+ }
585
+ }
586
+ if ($ new ->getDocComment () !== null ) {
587
+ $ newPhpDocNode = $ this ->parseDocComment ($ new ->getDocComment ()->getText ());
588
+ $ newParamTags = $ newPhpDocNode ->getParamTagValues ();
589
+ foreach ($ newParamTags as $ paramTag ) {
590
+ $ newPhpDocParameters [$ paramTag ->parameterName ] = $ paramTag ->__toString ();
591
+ }
592
+ }
593
+
594
+ if ($ oldPhpDocParameters !== $ newPhpDocParameters ) {
595
+ return $ this ->functionDiff ($ old , $ new , $ updateTo );
596
+ }
597
+
577
598
return [$ old ];
578
599
}
579
600
You can’t perform that action at this time.
0 commit comments