Skip to content

Conversation

arnaud-lb
Copy link
Contributor

@arnaud-lb arnaud-lb commented Nov 6, 2019

This builds on phpstan/phpdoc-parser#34 to support covariance of type variables, via @template-covariant.

Missing:

  • Rule to allow covariant type variables only as return types (f(): T), or as covariant type parameter (Bar<T> when Bar has @template-covariant).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants