1.10.23
版本发布时间: 2023-07-04 21:33:52
phpstan/phpstan最新发布版本:1.12.6(2024-10-06 23:06:59)
Improvements 🔧
- Fix false positives and false negatives about uninitialized properties (https://github.com/phpstan/phpstan-src/commit/348debc5c3b38c5f40448bae63d76cc99a6baea8), #7198
- This leads to uninitialized properties being detected in more places
- Lazy initialization of
AnalyserResult::$errors
(#2400), thanks @takaram! - Check additional assign of promoted readonly property (https://github.com/phpstan/phpstan-src/commit/8fe4401489c58da040889ed18bffda10ba89f05c)
Bugfixes 🐛
- Fix readonly property assigned in if-else (https://github.com/phpstan/phpstan-src/commit/ce3c1641926e8abf7ce6dca055717e1657deb792), #6402
- Fix ConstantArrayTypeBuilder's isList flag (#2408), thanks @jlherren!
- TypeSpecifier - handle AlwaysRememberedExpr in handling Identical (https://github.com/phpstan/phpstan-src/commit/a769a1c90c7d9b051e42225104dbc3c83768a553), #9499
- Fix processing traits with renamed methods (https://github.com/phpstan/phpstan-src/commit/c6035f3ca1511332c9fec762135a24f5963dee06), #7198, #6039, #4758
Function signature fixes 🤖
- Allow
null
inmysqli*real_connect
arguments (#2508), thanks @staabm!
Internals 🔍
- Cheap checks first in IgnoredRegexValidator (#2505), thanks @mad-briller!
- Do not use
instanceof ThisType
as it can be unreliable in case of intersection types (https://github.com/phpstan/phpstan-src/commit/79359450f36c073fa8444a7e87c0e29867f6b4c1)
1、 phpstan.phar 20.89MB
2、 phpstan.phar.asc 833B