mirror of
https://github.com/rectorphp/rector.git
synced 2025-02-22 02:36:52 +01:00
reset values to key from 0
This commit is contained in:
parent
bc1a4c3ee0
commit
a66bdd36a1
@ -106,7 +106,7 @@ final class PhpDocInfo
|
||||
/** @var AttributeAwareNodeInterface[]|PhpDocTagNode[] $tags */
|
||||
$tags = $this->phpDocNode->getTags();
|
||||
|
||||
return array_filter($tags, function (PhpDocTagNode $tag) use ($name): bool {
|
||||
$tags = array_filter($tags, function (PhpDocTagNode $tag) use ($name): bool {
|
||||
if ($tag->name === $name) {
|
||||
return true;
|
||||
}
|
||||
@ -119,6 +119,8 @@ final class PhpDocInfo
|
||||
|
||||
return AnnotationNaming::normalizeName($annotationClass) === $name;
|
||||
});
|
||||
|
||||
return array_values($tags);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user