Skip to content

Comments

Ignore additional generics annotations#367

Closed
sanmai wants to merge 1 commit intodoctrine:1.10.xfrom
sanmai:patch-2
Closed

Ignore additional generics annotations#367
sanmai wants to merge 1 commit intodoctrine:1.10.xfrom
sanmai:patch-2

Conversation

@sanmai
Copy link
Contributor

@sanmai sanmai commented Sep 29, 2020

Including for Phan, Psalm, and Infection.

Including for Phan, Psalm, and Infection.
// Phan, Psalm, Infection
'phan' => true,
'psalm' => true,
'infection' => true,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, what are we ignoring exactly here? Do this ignore rule ignore annotations prefixed with psalm? I'm asking because I'm familiar with @psalm-*, but not with @psalm if that's a thing.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, it is exactly about @psalm-* thing. But looking at #298 it might be not required any more.

Can you confirm that dashed annotations like @psalm-return are automatically ignored?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, dashed annotations are automatically ignored, as they cannot be valid doctrine annotations anyway (as dashes are forbidden in class names)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the confirmation. Then this PR is indeed unnecessary.

@sanmai sanmai closed this Sep 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants