Skip to content

Commit 5a88902

Browse files
phpstan fixes
1 parent 2557919 commit 5a88902

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

extractor/extract.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)