PHPnews.io

PHPStan Generics for Dummies - With 2 Parents

Written by Tomáš Votruba / Original link on May. 3, 2021

In previous post we talked about how to promote generics to parent class. There we learned how to tell parent class what generic type we use (typically from ProductRepository and AbstractRepository).
Today we take the same use case and add one more parent class.
That must be easy, right?

tomasvotruba

« How we use Web Components at GitHub - New in Symfony 5.3: Session Service Deprecation »