Update dependency phpstan/phpstan to v2.1.12
This MR contains the following updates:
Package | Type | Update | Change |
---|---|---|---|
phpstan/phpstan | require-dev | patch |
2.1.11 -> 2.1.12
|
Release Notes
phpstan/phpstan (phpstan/phpstan)
v2.1.12

- Remember narrowed types from the constructor when analysing other methods (#3930), #12860, #10048, #11828, #9075, #6063, #12723, thanks @staabm!
- DeprecationExtensions: allow custom deprecation-marking logic (#3932), thanks @janedbal!
- TypeInferenceTestCase - show analysed symbols that do not exist next to failure (misconfigured autoloading) (https://github.com/phpstan/phpstan-src/commit/fdd5ad933d2264be29812eb713d0f15519d5cb3f, https://github.com/phpstan/phpstan-src/commit/a2834bcc6894f8d0dce299507735473cfa1f8f54)
- RuleTestCase - show analysed symbols that do not exist next to failure (misconfigured autoloading) (https://github.com/phpstan/phpstan-src/commit/c5cf14ba60139fb40a1e26973a115778a9e82815, https://github.com/phpstan/phpstan-src/commit/a2834bcc6894f8d0dce299507735473cfa1f8f54)
- Allow toggling
discoveringSymbols
tip (#3929), https://github.com/phpstan/phpstan/discussions/12859, thanks @herndlm! - Faster processing of array comparisons with constant offsets (#3933), #12800, thanks @staabm!
- ClassReflection: narrow getNativeReflection after isEnum is true (#3925), thanks @janedbal!
- ResultCacheManager: support dots in parametersNotInvalidatingCache (#3939), thanks @janedbal!
- ResultCacheManager: configurable days causing cache skip (#3941), thanks @janedbal!

- This release includes fixes from PHPStan 1.12.24
- RegexArrayShapeMatcher - enforce list type when no named captures (#3899), #12397, #11602, thanks @staabm!
- Fix elapsed time format for result cache restore time (#3890), thanks @janedbal!
- Limit int ranges when narrowing arrays via
count()
(#3902), #12787, thanks @herndlm! - Fixed false positive about undefined property guarded with property_exists (https://github.com/phpstan/phpstan-src/commit/3d5293075344157864219e5833bbfa69d60ec7be)
- Fixed false positive about undefined method guarded with method_exists (https://github.com/phpstan/phpstan-src/commit/ae5562fc29737d3f4a724bdd351c23f1347d569d), #12793
- Offset on list definitely exists if there's HasOffsetType with higher number (#3905), #12605, thanks @staabm!
- Set offset on list keeps list if there's HasOffsetType for all preceeding offsets (#3909), thanks @staabm!
- Fix union/intersect involving enum case (#3907), #12163, thanks @schlndh!
- Fix lost list type if substituted a element via loop (#3908), #12274, thanks @staabm!
- Fix signature type for default-null parameters (#3912), #7522, #12282, thanks @VincentLanglet!
- ObjectType: fix isEnum (#3915), #12832, thanks @janedbal!
- Fix
matches[0]
type for regexes containing\K
(#3920), #12792, thanks @mvorisek! - TypeCombinator returns
non-empty-array
for union ofisIterableAtLeastOnce()->yes()
(#3937), #12847, thanks @staabm!

- More precise return type for strspn and strcspn (#3918), thanks @claudepache!
- Improve
getopt()
function stub (#3655), #12103, thanks @janedbal!

Configuration
-
If you want to rebase/retry this MR, check this box
This MR has been generated by Renovate Bot.
Merge request reports
Activity
Please register or sign in to reply