Releases
1.10.20
Compare
Sorry, something went wrong.
No results found
Improvements 🔧
PHPStan Pro: Change Cloudflare DNS for to family version (#2467 ), thanks @spaze !
Add non-zero-int type (#2449 ), thanks @PrinsFrank !
Implement gettype() return type extension (#2437 ), thanks @staabm !
Bugfixes 🐛
Allow to remember constant and impure expressions in match condition (phpstan/phpstan-src@0cdda0b ), #4451 , #6064 , #9457
Fix gettype in match condition (phpstan/phpstan-src@e4ef00c , phpstan/phpstan-src@caa0a5b ), #8614
Fix get_class in match condition (phpstan/phpstan-src@106526d ), #1885 , #8536 , #8092
Understand get_class compared with static::class (phpstan/phpstan-src@590eb03 ), #1885
Understand gettype when there's a union of strings on the other side (phpstan/phpstan-src@36e412f ), #6294 , #2580
Treat ConstantArrayType as covariant in its keys and values (#2464 ), #9161 , thanks @jiripudil !
Treat ArrayType as covariant in its keys and values (#2465 ), thanks @jiripudil !
Make NonEmptyArrayType::toArray() return $this (#2349 ), #9208 , thanks @zonuexe !
Retain list type via array_push() and array_unshift() (#2451 ), #8449 , thanks @herndlm !
For @var above throw and return, change the type of expr only for the stmt callback (phpstan/phpstan-src@b551095 ), #9459
Internals 🔍
You can’t perform that action at this time.