Generics in PHP using PHPDocs
A couple of years I wrote an impactful article on union and intersection types. It helped the PHP community to familiarize themselves with…