Update dependency phpstan/phpstan to v1.10.23
This MR contains the following updates:
Package | Type | Update | Change |
---|---|---|---|
phpstan/phpstan | require-dev | patch |
1.10.21 -> 1.10.23
|
Release Notes
phpstan/phpstan (phpstan/phpstan)
v1.10.23
🔧
Improvements - Fix false positives and false negatives about uninitialized properties (https://github.com/phpstan/phpstan-src/commit/348debc5c3b38c5f40448bae63d76cc99a6baea8), #7198](https://github.com/phpstan/phpstan/issues/7198)
- This leads to uninitialized properties being detected in more places
- Lazy initialization of
AnalyserResult::$errors
(#2400](https://github.com/phpstan/phpstan-src/pull/2400)), thanks @takaram! - Check additional assign of promoted readonly property (https://github.com/phpstan/phpstan-src/commit/8fe4401489c58da040889ed18bffda10ba89f05c)
🐛
Bugfixes - Fix readonly property assigned in if-else (https://github.com/phpstan/phpstan-src/commit/ce3c1641926e8abf7ce6dca055717e1657deb792), #6402](https://github.com/phpstan/phpstan/issues/6402)
- Fix ConstantArrayTypeBuilder's isList flag (#2408](https://github.com/phpstan/phpstan-src/pull/2408)), thanks @jlherren!
- TypeSpecifier - handle AlwaysRememberedExpr in handling Identical (https://github.com/phpstan/phpstan-src/commit/a769a1c90c7d9b051e42225104dbc3c83768a553), #9499](https://github.com/phpstan/phpstan/issues/9499)
- Fix processing traits with renamed methods (https://github.com/phpstan/phpstan-src/commit/c6035f3ca1511332c9fec762135a24f5963dee06), #7198](https://github.com/phpstan/phpstan/issues/7198), #6039](https://github.com/phpstan/phpstan/issues/6039), #4758](https://github.com/phpstan/phpstan/issues/4758)
🤖
Function signature fixes - Allow
null
inmysqli*real_connect
arguments (#2508](https://github.com/phpstan/phpstan-src/pull/2508)), thanks @staabm!
🔍
Internals - Cheap checks first in IgnoredRegexValidator (#2505](https://github.com/phpstan/phpstan-src/pull/2505)), thanks @mad-briller!
- Do not use
instanceof ThisType
as it can be unreliable in case of intersection types (https://github.com/phpstan/phpstan-src/commit/79359450f36c073fa8444a7e87c0e29867f6b4c1)
v1.10.22
🔪
Bleeding edge - More precise
file()
flags args (#2476](https://github.com/phpstan/phpstan-src/pull/2476), #2482](https://github.com/phpstan/phpstan-src/pull/2482)), thanks @staabm! - Non-static methods cannot be used as static callables in PHP 8+ (#2420](https://github.com/phpstan/phpstan-src/pull/2420)), thanks @staabm!
- More precise
flock()
operation flags (#2477](https://github.com/phpstan/phpstan-src/pull/2477)), thanks @staabm! - Rule for
call_user_func()
(#2479](https://github.com/phpstan/phpstan-src/pull/2479)), thanks @staabm!
If you want to see the shape of things to come and adopt bleeding edge features early, you can include this config file in your project's phpstan.neon
:
includes:
- vendor/phpstan/phpstan/conf/bleedingEdge.neon
Of course, there are no backwards compatibility guarantees when you include this file. The behaviour and reported errors can change in minor versions with this file included. Learn more
🔧
Improvements - Add return type extension for
constant()
(#2474](https://github.com/phpstan/phpstan-src/pull/2474)), thanks @herndlm! - Dynamic
assert()
throw type extension (#2427](https://github.com/phpstan/phpstan-src/pull/2427)), thanks @patrickkusebauch! - Update nikic/PHP-Parser (https://github.com/phpstan/phpstan-src/commit/79b3034acf926b23ec3bcfed1ad36ea375f01981)
- PHP 8.3:
json_validate()
stub (https://github.com/phpstan/phpstan-src/commit/828b269c0dccda404e33a5cca1ac4be1998e18ba), thanks @staabm! - Implement
call_user_func()
DynamicFunctionReturnTypeExtension (#2479](https://github.com/phpstan/phpstan-src/pull/2479)), thanks @staabm!
🐛
Bugfixes - Add support for math with constant numeric string (#2209](https://github.com/phpstan/phpstan-src/pull/2209)), #8803](https://github.com/phpstan/phpstan/issues/8803), #8827](https://github.com/phpstan/phpstan/issues/8827), thanks @VincentLanglet!
- Use case insensitive matching to detect usages of private methods (#2484](https://github.com/phpstan/phpstan-src/pull/2484)), #8346](https://github.com/phpstan/phpstan/issues/8346), thanks @stof!
- fix array_splice with non-array replacement (#2457](https://github.com/phpstan/phpstan-src/pull/2457)), thanks @schlndh!
- Resolve key and value type of partially non-iterable types when entering foreach (https://github.com/phpstan/phpstan-src/commit/cb5a2b4575bee005c33fcbdc3748abc160cbda14), #9535](https://github.com/phpstan/phpstan/issues/9535), #4907](https://github.com/phpstan/phpstan/issues/4907), #8924](https://github.com/phpstan/phpstan/issues/8924), #5998](https://github.com/phpstan/phpstan/issues/5998)
- Foreach can append to the array but it does not change the number of iterations (https://github.com/phpstan/phpstan-src/commit/27085c5516f6864d73e660d6e897a1466c4169a6), #4612](https://github.com/phpstan/phpstan/issues/4612)
- MutatingScope - process left side of BooleanAnd and BooleanOr before getting type of the whole expression (https://github.com/phpstan/phpstan-src/commit/989dd6fab8b0bf66777e20c533c90c7841d05c3a), #5365](https://github.com/phpstan/phpstan/issues/5365), #6551](https://github.com/phpstan/phpstan/issues/6551), #7491](https://github.com/phpstan/phpstan/issues/7491), #4004](https://github.com/phpstan/phpstan/issues/4004), #2499](https://github.com/phpstan/phpstan/issues/2499)
- MutatingScope - process ternary cond before getting type of the whole expression (https://github.com/phpstan/phpstan-src/commit/faba80560516dc2780ff014f36171e806a7b19c2)
- Fix processing switch with complex case conditions (https://github.com/phpstan/phpstan-src/commit/f6b34f2ac86d2830f53ba51601067232ea1bf6d6), #5326](https://github.com/phpstan/phpstan/issues/5326)
- Fix ClassConstFetch Identical specification with Yoda conditions (#2498](https://github.com/phpstan/phpstan-src/pull/2498)), #9542](https://github.com/phpstan/phpstan/issues/9542), thanks @herndlm!
🤖
Function signature fixes - Update functionMap for ext-mongodb 1.16 (#2473](https://github.com/phpstan/phpstan-src/pull/2473)), thanks @alcaeus!
- Add false to the
db2_num_rows()
return type (#2456](https://github.com/phpstan/phpstan-src/pull/2456)), thanks @morozov! - More precise
ignore_user_abort()
return type (#2489](https://github.com/phpstan/phpstan-src/pull/2489)), thanks @staabm!
🔍
Internals - Type projections, part 1: call-site variance in GenericObjectType (#2471](https://github.com/phpstan/phpstan-src/pull/2471)), thanks @jiripudil!
- Test PHP 8.3 (#2486](https://github.com/phpstan/phpstan-src/pull/2486))
- Cleanup NodeScopeResolver (#2499](https://github.com/phpstan/phpstan-src/pull/2499)), thanks @staabm!
Configuration
-
If you want to rebase/retry this MR, check this box
This MR has been generated by Renovate Bot.