Download Latest Version 2.1.31 source code.tar.gz (3.9 MB)
Email in envelope

Get an email when there's a new version of PHPStan

Home / 2.1.31
Name Modified Size InfoDownloads / Week
Parent folder
phpstan.phar 2025-10-10 25.4 MB
phpstan.phar.asc 2025-10-10 833 Bytes
2.1.31 source code.tar.gz 2025-10-10 3.9 MB
2.1.31 source code.zip 2025-10-10 3.9 MB
README.md 2025-10-10 7.4 kB
Totals: 5 Items   33.2 MB 0

Bleeding edge 🔪

If you want to see the shape of things to come and adopt bleeding edge features early, you can include this config file in your project's phpstan.neon:

includes:
    - vendor/phpstan/phpstan/conf/bleedingEdge.neon

Of course, there are no backwards compatibility guarantees when you include this file. The behaviour and reported errors can change in minor versions with this file included. Learn more

Improvements 🔧

Bugfixes 🐛

Function signature fixes 🤖

  • Fix extract signature (#4402), [#13434], thanks @VincentLanglet!
  • Improve is_resource inference (#4411), [#10394], thanks @VincentLanglet!
  • Mark redis method as impure (#4409), [#10215], thanks @VincentLanglet!
  • Dynamic DOM return type (#4354), [#9200], thanks @VincentLanglet!
  • Fix XDOMPath::query() return type (#4373), [#13595], thanks @stefanfisk!

Internals 🔍

Source: README.md, updated 2025-10-10