Skip to content

Conversation

@arnaud-lb
Copy link
Contributor

This allows constructors to take covariant parameters, which is safe and quite useful. After this PR, https://phpstan.org/r/16b7f23e-34e1-42b3-9ec7-f80beb120caa reports no error.

@arnaud-lb arnaud-lb force-pushed the constructor-variance branch from d1f219a to 12ff59d Compare November 29, 2019 09:06
@ondrejmirtes ondrejmirtes merged commit a9ecf1f into phpstan:master Nov 29, 2019
@ondrejmirtes
Copy link
Member

Thank you :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants