Update dependency phpstan/phpstan to v1.10.16
This MR contains the following updates:
Package | Type | Update | Change |
---|---|---|---|
phpstan/phpstan | require-dev | patch |
1.10.15 -> 1.10.16
|
Release Notes
phpstan/phpstan
v1.10.16
🔪
Bleeding edge - Report dead types even in multi-exception catch (#2399), thanks @JanTvrdik!
-
error_log
errors withmessage_type=2
(#2428), #9380, 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 -
CallableType
andClosureType::describe()
- use phpdoc-parser Printer for better precision (https://github.com/phpstan/phpstan-src/commit/30f60c18f5efa9e7d5a5495c90f901178cf17a57), #9268 -
OffsetAccessType::describe()
uses toPhpDocNode and phpdoc-parser printer (https://github.com/phpstan/phpstan-src/commit/347fdbf2caa4d889d9e59af12fc1049a2aa608bb) - Smarter
extract()
with constant arrays (#2417), #9331, thanks @MartinMystikJonas! - Detect more issues in enum declarations (#2371), #9184, thanks @kubk!
- Correct magic signature methods when typehints are missing (#2409), thanks @staabm!
🐛
Bugfixes - Fix
SplDoublyLinkedList::offsetGet
return type (#2373), #9274, thanks @takaram! - Delegate
get_called_class()
tostatic::class
(https://github.com/phpstan/phpstan-src/commit/188acf440787c611fa86344b84fe1f41f027e4f6), #7574, #5252, #4061 - Fix enum type subtracting (#2415), thanks @schlndh!
- Fix loose comparison against enum (#2410), thanks @schlndh!
🔍
Internals - NodeScopeResolver: refactor matching throw points computation (#2399), thanks @JanTvrdik!
- ConstantArrayType -
toPhpDocNode
without keys if they are not necessary (https://github.com/phpstan/phpstan-src/commit/413079d807433cffac4dc9c33535920ff5bfeb18) - Test
@var
in and out of function (https://github.com/phpstan/phpstan-src/commit/4e1934796a74ba49e2ef980894b66d3d5ba2b656), #9331
Configuration
-
If you want to rebase/retry this MR, check this box
This MR has been generated by Renovate Bot.