File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -565,15 +565,15 @@ private function compareFunctions(Node\FunctionLike $old, Node\FunctionLike $new
565565 foreach ($ newAttribGroups as $ group ) {
566566 foreach ($ group ->attrs as $ attrib ) {
567567 if ($ attrib ->name ->toLowerString () !== 'since ' && $ attrib ->name ->toLowerString () !== 'until ' ) {
568- $ oldAttribs [] = $ attrib ;
568+ $ newAttribs [] = $ attrib ;
569569 }
570570 }
571571 }
572572 if (count ($ oldAttribs ) !== count ($ newAttribs )) {
573573 return $ this ->stmtDiff ($ old , $ new , $ updateTo );
574574 }
575575 foreach ($ oldAttribs as $ idx => $ oldAttrib ) {
576- $ newAttrib = $ newAttribs [$ attribIdx ];
576+ $ newAttrib = $ newAttribs [$ idx ];
577577 if ($ oldAttrib ->name ->name !== $ newAttrib ->name ->name ) {
578578 return $ this ->stmtDiff ($ old , $ new , $ updateTo );
579579 }
You can’t perform that action at this time.
0 commit comments