Today is the day of PHP 8.2 becoming generally available! It’s a pretty quiet year for adjustments needed in PHPStan which is a welcome change after making sure it fully works with PHP 8.1 for about six months up until the end of April of this year.
PHPStan 1.9.0 has been a real community effort. You’ll notice that every headlining feature of this release has been contributed by someone other than me, the maintainer.
PHPStan 1.6.0 which has been in development for the past month or so brings a surprising amount of new features and improvements. Let’s dive right into them!
When PHPStan 1.6.0 is released, your custom rules that use the parent/previous/next attributes from the NodeConnectingVisitor will no longer work for users that have enabled the Bleeding Edge feature toggle.
There’s a comprehensive guide on generics in PHP using PHPDocs, but after reading it someone might still not be sure where to begin.
When thinking about generics in PHP using PHPDocs, it’s reasonable to expect that Collection
can be passed into a parameter where Collection is expected, since Cat is an Animal.