1.10.45
版本发布时间: 2023-11-27 22:16:10
phpstan/phpstan最新发布版本:1.12.6(2024-10-06 23:06:59)
Improvements 🔧
- Introduce InvalidTypesInUnionRule (#2763), #9185, thanks @paulbalandan!
- Implement DeclareStrictTypesRule (#2766), #6195, thanks @staabm!
- Narrow
enum_exists()
arg to UnitEnum (#2764), #10169, thanks @staabm!
Bugfixes 🐛
- Use dedicated Type methods over
isSuperTypeOf()
(#2772, #2787), #9778, #9723, #6407, thanks @staabm! - Optimize match expression with many conditions (https://github.com/phpstan/phpstan-src/commit/c238fe77f7041dd486c9c0f5ee582fee75bdbadd)
-
in_array
- simulate Identical/Equal handling from TypeSpecifier for literal arrays (https://github.com/phpstan/phpstan-src/commit/0177e332f27c7cf7d710c1a535ddcdfd019e9b89), #10201
Function signature fixes 🤖
- Fix optional 4th parameter for
Redis::restore
(#2765), thanks @Vaalyn! - Put
str_increment
andstr_decrement
into functionMap (#2777), thanks @zonuexe! - Update functionMap (#2783), thanks @zonuexe!
- Update functionMap for
ext-mongodb
1.17 (#2768), thanks @alcaeus!
Internals 🔍
- Replace with
in_array()
instead of redundant property (#2770), thanks @zonuexe! - Fix typo in rule name:
MethodVisibitiliyInInterfaceRule
(#2781), thanks @staabm! - Make extensions that return default types simply
return null
(#2782), thanks @zonuexe! - Simplify InArrayFunctionTypeSpecifyingExtension (#2785), thanks @staabm!
1、 phpstan.phar 21.37MB
2、 phpstan.phar.asc 833B