PHPStan has only supported invariant and covariant template types because they are so prevalent in real-world applications. But contravariant template types also have their use cases, and the latest release of PHPStan adds support for them, among other small improvements to generics.| Blog – Jiří Pudil
608 Posts, 1 Following, 862 Followers · Find bugs in your code without writing tests! Created by @OndrejMirtes| PHP Community on Mastodon
MenuA guide to call-site generic variance| phpstan.org
MenuSolving PHPStan error “Access to an undefined property”| phpstan.org