Update dependency phpstan/phpstan to v1.10.46
This MR contains the following updates:
Package | Change | Age | Adoption | Passing | Confidence |
---|---|---|---|---|---|
phpstan/phpstan |
1.10.44 -> 1.10.46
|
Release Notes
phpstan/phpstan (phpstan/phpstan)
v1.10.46
🔧
Improvements - Improved
isset()
and ternary operator handling (#2710), #3632, #8190, #8366, #8659, #9580, #10064, #10088, thanks @staabm! - Optimize enums with many cases (https://github.com/phpstan/phpstan-src/commit/b17d5290766ca3a4d413dbfe9e020c9fef4700c3)
🐛
Bugfixes - Fix namespace of named type in class constant native type by patching PHP-Parser (https://github.com/phpstan/phpstan-src/commit/8234dc0b34c0748f6caa3be4130411562fb03f2c), #10212
- Do not create conditional expression for the same variable (https://github.com/phpstan/phpstan-src/commit/aec04068119f765ed7181ea737c20cea6916591d)
- It's okay to have always-throwing expression in arrow function (https://github.com/phpstan/phpstan-src/commit/758e5f118ac5781d597707666104511258fcaf67), #7890
🔍
Internals
v1.10.45
🔧
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!
Configuration
-
If you want to rebase/retry this MR, check this box
This MR has been generated by Renovate Bot.
Edited by Renovate Bot