Update dependency phpstan/phpstan to v2.1.13
This MR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| phpstan/phpstan | require-dev | patch |
2.1.12 -> 2.1.13
|
Release Notes
phpstan/phpstan (phpstan/phpstan)
v2.1.13
Major new features 🚀
- Restricted Usage Extensions
Bleeding edge 🔪
- Report
@internalsymbols usage from outside their top namespace, #1178
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 🔧
- Improve return type of
array_splice()(#3947), thanks @herndlm! - Handle preserve_keys in
array_slice()for normal arrays (#3946), #12880, thanks @herndlm! - Improve
ConstantArrayType::sliceArray()with non constant integer args (#3949), thanks @herndlm! - TableErrorFormatter: visually differentiate phpstan assertion errors from rule errors (#3951), thanks @staabm!
Bugfixes 🐛
- Consider comparison as strict when type is the same (#3942), #12884, thanks @VincentLanglet!
- Fix wrong property type after assigning iterable type (https://github.com/phpstan/phpstan-src/commit/7c1ee34aa09798c2bb5ba182b078e436f0b7820c), #12891
-
Scope::rememberConstructorScope()should not remember the function scope (#3944), https://github.com/spaze/phpstan-disallowed-calls/issues/323, thanks @staabm! - Fix imprecise property native types after assignment (#3945), #12902, thanks @staabm!
- Fix invalidating static property access after impure call (#3950), #11019, #3747, #8523, #4864, #4443, thanks @staabm!
- More precise string functions return type with replacement array (#3963), #12928, thanks @staabm!
- Fix
session_set_cookie_paramscall with named arguments (https://github.com/phpstan/phpstan-src/commit/72e37dcf297752e074b214bd752f24617b7e6bb3), #12934
Internals 🔍
- MutatingScope: remove unnecessary callback functions (#3916), thanks @staabm!
- Fix occasional failure in ParallelAnalyserIntegrationTest (https://github.com/phpstan/phpstan-src/commit/4f5a63a5f577dbf9fecca53e8d6ea4ac64542f7a)
- MethodReflection - fix isInternal vs. isBuiltin (https://github.com/phpstan/phpstan-src/commit/3024c02e844d430759ac950261ba5c5aea52eb1b)
- Simplify degradation to general array in
ConstantArrayType::shuffle()(#3948), thanks @herndlm! -
ExtendedPropertyReflection::getName()(https://github.com/phpstan/phpstan-src/commit/ff198c9d121d658c150ce74f11bde000d665117d) - Micro optimize LazyInternalScopeFactory (#3962), thanks @staabm!
Configuration
-
If you want to rebase/retry this MR, check this box
This MR has been generated by Renovate Bot.