1.11.7
版本发布时间: 2024-07-06 19:20:47
phpstan/phpstan最新发布版本:1.12.6(2024-10-06 23:06:59)
Improvements 🔧
- Rework
match
expression analysis with enum with performance in mind (https://github.com/phpstan/phpstan-src/commit/b98abe01ca2a589c964970ea42128ae9b752890b), #11263 - DiagnoseExtension (https://github.com/phpstan/phpstan-src/commit/d55933fa0c8d6c9d91c5d30f70313e1c15b2c7f9)
- This extension can output any diagnostic information to stderr after analysis
- PHPStan displays this information when running the "analyse" command with
-vvv
CLI option.
- Result cache - debug message about successfully restored cache (https://github.com/phpstan/phpstan-src/commit/979055fceeaefec30c1eded52550012f0c1333b6)
- Show a hint about
-vv
for unignorable errors when generating the baseline (https://github.com/phpstan/phpstan-src/commit/d931c8987563fbe5a05e411722a6f53da6f1b555), #3973 - Limit the depth when resolving closure type for performance reasons (https://github.com/phpstan/phpstan-src/commit/2c08dfa8d0f975654d52fe279a950c54415076b5?w=1), #11283
-
MutatingScope::resolveType()
- cache closure body analysis data (https://github.com/phpstan/phpstan-src/commit/fd3115652b76278fa6ddf8ba40b41fc751642153), #11283
Bugfixes 🐛
- Observe
@no-named-arguments
above class (https://github.com/phpstan/phpstan-src/commit/815270d8933b9cdefa4613f0baf17bcbff91be6f), #11275 - Fix
count()
narrowing on $matches (#3210), #11277, thanks @staabm! - Try preventing "Method was not found in reflection of class" when getting a method prototype (https://github.com/phpstan/phpstan-src/commit/25658f64f0bcfe784893104864d92032cce33e96), #11269, #11251
- RegexArrayShapeMatcher - support resetting non-capturing groups (#3212), #11291, thanks @staabm!
- Prevent out-of-memory errors while regex array shape inference (#3213), #11292, thanks @staabm!
Function signature fixes 🤖
-
getimagesize
,getimagesizefromstring
: zero is a possible value for height and width (#3207), thanks @mfruehauf!
Internals 🔍
1、 phpstan.phar 21.94MB
2、 phpstan.phar.asc 833B