| Name | Modified | Size | Downloads / Week |
|---|---|---|---|
| Parent folder | |||
| phpstan.phar | 2026-10-28 | 30.2 MB | |
| phpstan.phar.asc | 2026-10-28 | 833 Bytes | |
| 2.3.4 source code.tar.gz | 2026-10-28 | 29.8 MB | |
| 2.3.4 source code.zip | 2026-10-28 | 29.8 MB | |
| README.md | 2026-10-28 | 3.8 kB | |
| Totals: 5 Items | 89.8 MB | 0 | |
Bleeding edge 🔪
- Reuse the errors of rules on CollectedDataNode from the result cache (#6840), thanks @SanderMuller!
- CollectedDataNode rules no longer run every time after analysis. Their reported errors are saved and restored from the result cache. PHPStan tracks what collectors each rule queries for data, and re-runs the rule only when the specific collected data change.
- Some extensions relying on running every time might need updating. Use the new dependency tracking APIs for proper result cache invalidation.
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 🔧
- Update phpdoc-parser
- Add NameNode, FullyQualifiedNameNode and RelativeNameNode (https://github.com/phpstan/phpdoc-parser/pull/339)
- PhpDocParser: read a quoted key of a Doctrine annotation argument (https://github.com/phpstan/phpdoc-parser/pull/338)
- Invalid Doctrine tag with backslash: return InvalidTagValueNode (https://github.com/phpstan/phpdoc-parser/pull/335)
- Printer: remove the separator after a removed first list item (https://github.com/phpstan/phpdoc-parser/pull/333)
- Printer: support lists with gaps in keys (https://github.com/phpstan/phpdoc-parser/pull/336)
- Printer: new empty line in docblock without trailing space (https://github.com/phpstan/phpdoc-parser/pull/337)
- Print the rules on CollectedDataNode in
--debugoutput (#6723), thanks @SanderMuller! - Say what the time of a rule on CollectedDataNode covers (#6723), thanks @SanderMuller!
Bugfixes 🐛
- Keep the composed ini when a forked worker ends (#6865)
- Compare constant scalars refined by accessory types against other union members in
TypeCombinator::union()(#6863), [#15591], thanks @staabm! - Absorb refined constant scalars into their plain constant within the scalar buckets of
TypeCombinator::union()(https://github.com/phpstan/phpstan-src/commit/37e5de65742aa3cbc9d81161e248740552f0897a) - Drop constant scalars from a union only when a type containing every value of that scalar is present (https://github.com/phpstan/phpstan-src/commit/fd2208f42371dcde11421aac0c6f1d6bcc09aa34), [#6567]
Internals 🔍
- Update compiler dependencies (#6862)
- Rewrite Turbo README around where the speed comes from (#6864)
- Compiler: upgrade PHPUnit to 11.5 (https://github.com/phpstan/phpstan-src/commit/bf9270039e6d0d7bf1329091f78cb5060486be12)
- Box: update php-scoper to 0.18.20 (https://github.com/phpstan/phpstan-src/commit/00e258c22b3f5516acf4ec048a55d86c0550c22c)
- Add
Type::toNativePhpTypeNode()andNativeTypePosition(https://github.com/phpstan/phpstan-src/commit/c539adc521fff07c32ddd53268da875dc8ad6344) - Return name nodes for class names from
Type::toPhpDocNode()(#6875)