Skip to content

Support @template-contravariant tags#140

Merged
ondrejmirtes merged 1 commit intophpstan:1.6.xfrom
autaut03:template-contravariant
Jun 26, 2022
Merged

Support @template-contravariant tags#140
ondrejmirtes merged 1 commit intophpstan:1.6.xfrom
autaut03:template-contravariant

Conversation

@autaut03
Copy link
Copy Markdown
Contributor

@autaut03 autaut03 commented Jun 26, 2022

This allows implementing phpstan/phpstan#7502 on PHPStan side.

case '@psalm-template-covariant':
case '@template-contravariant':
case '@phpstan-template-contravariant':
case '@psalm-template-contravariant':
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Psalm doesn't currently support @template-contravariant tags either, so I'm unsure whether this should be included.

Support would be welcomed, so I'd rather keep this.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Yes, there's no harm in having @psalm-template-contravariant here :)

@ondrejmirtes ondrejmirtes merged commit 135607f into phpstan:1.6.x Jun 26, 2022
@ondrejmirtes
Copy link
Copy Markdown
Member

Thank you!

@autaut03 autaut03 deleted the template-contravariant branch June 26, 2022 21:26
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.

2 participants