1.10.56
版本发布时间: 2024-01-15 18:44:55
phpstan/phpstan最新发布版本:1.12.6(2024-10-06 23:06:59)
Major new feature 🚀
- New PHPDoc tags:
@phpstan-require-extends
,@phpstan-require-implements
, #10302, #9899, #8550, thanks @staabm!- Learn more: Making
@property
PHPDoc above interfaces work on PHP 8.2+ - Enforcing class inheritance for interfaces and traits
- Enforcing implementing an interface for traits
- Development of this feature was kindly sponsored by Pixel & Tonic, the team behind Craft CMS
- Learn more: Making
Improvements 🔧
- Scope - function call stack includes parameters too (https://github.com/phpstan/phpstan-src/commit/b87e5c4c7e33a91c61341f0335a221c32df603b2), https://github.com/phpstan/phpstan-deprecation-rules/issues/107
Bugfixes 🐛
- Process
match
arm condition before analysing the body (https://github.com/phpstan/phpstan-src/commit/2b74aa85b87e85bbc2398b96b1bff07234b1f791), #10418
Function signature fixes 🤖
- Fix transliterator function maps (#2862), thanks @PrinsFrank!
- Fix duplicate array key
Yaf_Response_Http::__clone
(#2863), thanks @PrinsFrank! - Add array shape for
transliterator::listIDs
return type (#2865), thanks @PrinsFrank! -
strtok()
always returns anon-empty-string
when it does not return false (#2869), thanks @staabm!
Internals 🔍
- Prevent repetative calls to
Type::getConstantArrays()
(#2864), thanks @staabm! - Remove redundant condition in ParametersAcceptorSelector (#2867), thanks @mad-briller!
- Simplify default return path in extensions (#2868), thanks @staabm!
- Reduce unnecessary calls to
Scope::getFunctionType()
(#2872), thanks @staabm!
1、 phpstan.phar 21.32MB
2、 phpstan.phar.asc 833B