1.11.11
版本发布时间: 2024-08-19 22:39:08
phpstan/phpstan最新发布版本:1.12.6(2024-10-06 23:06:59)
Improvements 🔧
- Narrow arrays in union based on count() with smaller/greater operator (#3324), #11480, thanks @staabm!
- PHPStanDiagnoseExtension - show Composer packages with included config files (https://github.com/phpstan/phpstan-src/commit/58d202fddc5597a1fa274ca3b64c352717818c4f)
Bugfixes 🐛
- RegexArrayShapeMatcher - optional non-last groups can be empty-string (#3306), #11479, thanks @staabm!
- RegexArrayShapeMatcher - fix capturing item-array-shapes for preg_match_all (#3307), thanks @staabm!
- RegexArrayShapeMatcher - Fix shape of single top level alternations (#3299), #11462, thanks @staabm!
- RegexArrayShapeMatcher - Fix matching literal "-" in character classes (#3314), #11490, thanks @staabm!
- Improve sprintf support (#3310), #11491, thanks @VincentLanglet!
- Handle union and mixed in plus operation (#3320), #3759, thanks @VincentLanglet!
- Fix union with float should accept integer range (#3318), #10248, thanks @VincentLanglet!
- Fix array_intersect_key (#3317), #10561, thanks @VincentLanglet!
- Improve non strict
in_array()
(#3319), #9436, thanks @VincentLanglet! - String offset access leads to non-empty-string (single character) (https://github.com/phpstan/phpstan-src/commit/9439bba42047ab9561a091292568d7adf58e42ce), #11506
- Fix
AccessoryLiteralStringType::setOffsetValueType()
(https://github.com/phpstan/phpstan-src/commit/93c5226cb5711c8b1b846fcfe6d5ef2586d2b162) - Fix
AccessoryNonFalsyStringType::setOffsetValueType()
(https://github.com/phpstan/phpstan-src/commit/c28c9362376286044b37755bedf49ab2228801dc) - Improve IntDivThrowTypeExtension to support integer ranges (#3325), thanks @VincentLanglet!
- Fix array intersection between HasOffsetType and HasOffsetValueType (https://github.com/phpstan/phpstan-src/commit/07d64058830765dbb3bf194cffdf66c98db20a38), #11518
- Fix item type in list to constant array conversion with
count()
(#3309), thanks @staabm!
Function signature fixes 🤖
- Fix imagick definition (#3316), #10803, thanks @VincentLanglet!
Internals 🔍
- Turn Regex classes immutable where possible (#3305), thanks @staabm!
1、 phpstan.phar 22.27MB
2、 phpstan.phar.asc 833B