Generics ======== Generics in PHP --------------- Generics in PHP are discuted `in Generic types and functions RFC `_ and `in Generic arrays RFC `_, but they are not adopted and generics will never be integrated in PHP. Generics with phpstan --------------------- `phpstan `_ can solve this problem with it's `generics implementation `_. Generics in PhpCollection ------------------------- When you :doc:`create-a-collection`, you configure generics with ``/** @extends AbstractObjectCollection */``.