GeezerVison is showing github.com — chore(deps): update phpstan packages (major) by renovate[bot] · Pull Request #19 · brainbits/database-command
Conversation
renovate
Bot
commented
Nov 11, 2024
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
This PR contains the following updates:
Release Notes
brainbits/phpstan-rules (brainbits/phpstan-rules)
Compare Source
Features
- Add support for phpstan 2.0, drop support for older versions. (864df93)
BREAKING CHANGES
- phpstan 1.x is not longer supported
Jan0707/phpstan-prophecy (jangregor/phpstan-prophecy)
v2.2.0: (2025-05-22)
Compare Source
What's Changed
Full Changelog: Jan0707/phpstan-prophecy@2.1.1...2.2.0
v2.1.1: (2025-02-13)
Compare Source
What's Changed
Recommend update phpstan and all its extension via:
composer update "*phpstan*"
Full Changelog: Jan0707/phpstan-prophecy@2.1.0...2.1.1
v2.1.0: (2025-02-13)
Compare Source
What's Changed
Recommend update phpstan and all its extension via:
composer update "*phpstan*"
PHPStan 2.1.5 required to work correctly.
Full Changelog: Jan0707/phpstan-prophecy@2.0.0...2.1.0
Compare Source
What's Changed
New Contributors
Full Changelog: Jan0707/phpstan-prophecy@1.0.2...2.0.0
phpstan/phpstan (phpstan/phpstan)
Compare Source
Compare Source
Bugfixes 🐛
Compare Source
Improvements 🔧
Bugfixes 🐛
- Fix
IntersectionType::isIterableOnce() (#4106), #13248, thanks @VincentLanglet!
- Fix false positive unreachable (#4112), #7531, thanks @VincentLanglet!
- Improve array filter return type on PHP 8 (#4123), #12689, thanks @VincentLanglet!
- Fix analysis on
array_map with named arguments (#3763), #12317, thanks @takaram!
- Fix
ObjectType::getOffsetValueType() (#4126), #12125, #9575, #9456, #13144, thanks @VincentLanglet!
- Fix for respecting rule levels for
property.nameNotString (#4117), #13271
- Improve trim on numeric string (#4130), #10860, thanks @VincentLanglet!
- Fix intersection with substracted (#4132), thanks @VincentLanglet!
- Understand at least one argument for non empty array unpacked (#4134), #10020, #8506, thanks @VincentLanglet!
- Handle empty array case via
ConstantArrayType::spliceArray() (#4140), #13279, thanks @herndlm!
- Fix lowercase string usage in template (#4122), #12739, thanks @VincentLanglet!
- Fix "Unsafe use of new static when trait enforces constructor via abstract method" (#4114), #9654, thanks @VincentLanglet!
- Nothing is lower than null (#4131), #10719, #9141, thanks @VincentLanglet!
- Hotfix - allow people to override
exceptionTypeResolver in neon (phpstan/phpstan-src@e7febc3)
Function signature fixes 🤖
- Improve sys_getloadavg return type (#4107), #13198, thanks @VincentLanglet!
- Fix PDO quote return type (#4113), #10512, thanks @VincentLanglet!
- Fix pg_lo_import definition (#4120), thanks @VincentLanglet!
- Update eio function return type (#4124), thanks @VincentLanglet!
- Update
stream_filter_* signatures (#4125), #12380, thanks @VincentLanglet!
- Update DomNode return type (#4137), thanks @VincentLanglet!
- Update Spl methods with side effects (#4129), #10884, #9180, thanks @VincentLanglet!
- Fix odbc definitions (#4119), thanks @VincentLanglet!
Internals 🔍
- Added regression test (#4105), #8372, thanks @staabm!
- Added regression test (#4109), #13043, thanks @VincentLanglet!
- Add regression tests for strict rules issues (#4110), https://github.com/phpstan/phpstan-strict-rules/issues/147, https://github.com/phpstan/phpstan-strict-rules/issues/143, thanks @VincentLanglet!
- Fix function name typo (#4118), thanks @VincentLanglet!
- Fix typo in error message in
#[RequiresPhp] attribute rule (#4127), thanks @takaram!
- Update bashunit:0.22.0 (#4133), thanks @Chemaclass!
- Add regression test (#4135), #9706, thanks @VincentLanglet!
- Add regression test (#4136), #9401, thanks @VincentLanglet!
- Introduce
dumpNativeType (#4108), thanks @VincentLanglet!
Compare Source
Bleeding edge 🔪
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
@phpstan-sealed support (#4095), thanks @VincentLanglet!
- This release includes improvements and bugfixes from PHPStan 1.12.28
- Validate registered services tags against implemented interface (phpstan/phpstan-src@f375a81)
- Only change exit code with
--fail-without-result-cache when the error formatter returns 0 (phpstan/phpstan-src@df9fa6e)
- Normalize arguments before calling into TypeSpecifyingExtensions (#4034), #13088, thanks @staabm!
- Use
count() return type in ObjectType::getArraySize() (#4072, #4078), thanks @vojtech-dobes!
- Add method to get ObjectType from ClassReflection and EnumCaseReflection (#4099), thanks @calebdw!
- Playground & Issue bot: PhpdocCommentRule (#4074), thanks @staabm!
- Describe array shape key in quotes unless valid identifier (#4071), thanks @vojtech-dobes!
- Improve TrimDynamicReturnType for constant strings (#4028), thanks @VincentLanglet!
- Introduce ArrayPadDynamicReturnTypeExtension (#4017), #12305, thanks @VincentLanglet!
- Introduce
PDO::connect dynamic method return type extension (#4015), #12359, thanks @VincentLanglet!
- Add
PhpVersion::__construct to BC promise (#4022), #8582, thanks @VincentLanglet!
- Support
switch on ::class (#4011), #13069, thanks @VincentLanglet!
- More precise
array_keys return type (#3590), #11928, thanks @staabm!
Bugfixes 🐛
- Fix
ClosureType::equals() for pure/impure closures (phpstan/phpstan-src@02066c7), #13067
- Fix for benevolent union (#4039), #13098, thanks @VincentLanglet!
- Fix resolving generics from phpstorm-stubs (phpstan/phpstan-src@c0f2e9e), #13171
- Correctly retrieve hasSideEffects metadata for inherited methods (#4079), #13201, thanks @zonuexe!
- ObjectType: fix hasConstant behaviour (#4089), thanks @janedbal!
- Explicitly use StreamSelectLoop for PHPStan Pro download (#4077), thanks @calebdw!
- stream_get_contents() does not return FALSE unless an invalid position is provided (#4092), #3396, thanks @staabm!
- Revert "non-falsy-string cannot be converted to 0" (#3997), thanks @VincentLanglet!
- Improve return type of array map by invoking dynamic function return type extensions for the callback (#4068), #11180, #3156, thanks @VincentLanglet!
- Avoid false positive
in_array() always true (#4073), #13151, #8818, #12755, #12412, thanks @VincentLanglet!
- Fix always-true detection in in_array with union type haystack (#3888), #12755, thanks @sayuprc!
- Fix NAN inferences (#4040), #13097, thanks @VincentLanglet!
- Fix
MixedType->equals(ErrorType) (#3934), thanks @staabm!
- Handle class without namespace for internal rule (#3998), #13041, thanks @VincentLanglet!
- Resolve substr based on configured PHP version instead of runtime PHP version (#4061), #13129, thanks @VincentLanglet!
- Keep list on
unset() with nested dim fetch (#3964), #12927, #12330, #11171, #8282, #12754, thanks @staabm!
Function signature fixes 🤖
Internals 🔍
- Moved the list of relative paths in parameters to
parametersSchema.neon (phpstan/phpstan-src@72c2a8d)
- This now allows extensions to declare which of their custom parameters should be treated as relative path to expand
- Scaffolding for auto-fixable rules
- This feature will be fully released in PHPStan 2.2.0
- phpstan-src embraces attributes!
- phpstan-src now includes more custom opinionated rules specific to development of PHPStan itself
- DI Container - throw unprefixed exception (phpstan/phpstan-src@2443663)
- Require Box with Composer (#2955)
- Use 7.4 for PHP-Scoper PHP version (#2955), thanks @ondrejmirtes!
- Update to PHPUnit 10 ((#4046))
- Update to PHPUnit 11 (#4057)
- Upgrade bashunit:0.20 (#4048), thanks @Chemaclass!
- Add
assertSuperType testing utility (#4066), thanks @vojtech-dobes!
- Use str_starts_with() instead of strpos() (#4083), thanks @zonuexe!
- Avoid duplicating the same strpos() function call (#4083), thanks @zonuexe!
- Add
Type::spliceArray(), improve splice_array() array type narrowing (#3952), thanks @herndlm!
Compare Source
Major new features 🚀
Bleeding edge 🔪
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 🔧
Bugfixes 🐛
Function signature fixes 🤖
Internals 🔍
- Call
ProcessPromise::cancel() from deferred canceller (phpstan/phpstan-src@df4c1f3)
- Solve some cases of dead code (phpstan/phpstan-src@e1e8302)
- Remove dead code (phpstan/phpstan-src@d88e2fe)
- Remove unused method from interface (phpstan/phpstan-src@2ac0a17)
- Remove unused method from PathNotFoundException (phpstan/phpstan-src@aaa1424)
- Remove
getPhpDocReturnTypeWithUnresolvableTemplateTypes from ResolvedFunctionVariantWithCallable (phpstan/phpstan-src@e3c76ad)
- Remove more dead code (phpstan/phpstan-src@2f66ec6)
- Install & configure shipmonk/dead-code-detector (#3996), thanks @janedbal!
- Drop unused SymfonyStyle::getSymfonyStyle (#3996), thanks @janedbal!
- Drop unused NeonAdapter::dump (#3996), thanks @janedbal!
- Drop unused FileMonitor::getTotalFilesCount (#3996), thanks @janedbal!
- Drop unused SetterReflectionProviderProvider (#3996), thanks @janedbal!
- Drop dead dataProvider in ExistingClassesInTypehintsRuleTest (#3996), thanks @janedbal!
- Drop unused ResolvedPropertyReflection::getDeclaringTrait (#3996), thanks @janedbal!
- Drop unused ProcessPromise::getName (#3996), thanks @janedbal!
- Drop unused PhpDocBlock::isExplicit (#3996), thanks @janedbal!
- Drop dead TemplateTypeTrait::shouldGeneralizeInferredType (overwritten in all children) (#3996), thanks @janedbal!
- SimultaneousTypeTraverser to be covered by BC promise (#3996), thanks @janedbal!
Compare Source
Improvements 🔧
Bugfixes 🐛
Function signature fixes 🤖
Compare Source
Improvements 🔧
Bugfixes 🐛
- Fix GetDebugTypeFunctionReturnTypeExtension - should use TypeCombinator instead of
new UnionType (phpstan/phpstan-src@1044f11), #12512
- Remember value of arguments passed to
{min,max}() (#3928), #12731, thanks @cs278!
- Revert "Useful PhpMethodReflection native type refactoring from #3966" (#3979), thanks @samsonasik!
- Respect asserts and throws on pure functions that return void (#3719), #12224, thanks @jack-worman!
- Disable purity check for non-final methods (#3913), #12382, thanks @VincentLanglet!
- Fix
IterableType::equals() with TemplateIterableType (#3991), thanks @staabm!
- Restricted usage extensions - do not report false positives for Symfony polyfills (phpstan/phpstan-src@4a907f1), #12951
Function signature fixes 🤖
Internals 🔍
- Replace error-prone
instanceof *Type in Rules classes (#3858), thanks @zonuexe!
- Extract ArrayColumnHelper from ArrayColumnFunctionReturnTypeExtension (#3785), thanks @staabm!
Compare Source
Bugfixes 🐛
Internals 🔍
Compare Source
Major new features 🚀
- Restricted Usage Extensions
Bleeding edge 🔪
- Report
@internal symbols 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 (phpstan/phpstan-src@7c1ee34), #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_params call with named arguments (phpstan/phpstan-src@72e37dc), #12934
Internals 🔍
Compare Source
Improvements 🔧
- 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) (phpstan/phpstan-src@fdd5ad9, phpstan/phpstan-src@a2834bc)
- RuleTestCase - show analysed symbols that do not exist next to failure (misconfigured autoloading) (phpstan/phpstan-src@c5cf14b, phpstan/phpstan-src@a2834bc)
- 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!
Bugfixes 🐛
- 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 (phpstan/phpstan-src@3d52930)
- Fixed false positive about undefined method guarded with method_exists (phpstan/phpstan-src@ae5562f), #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), [#128
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
- If you want to rebase/retry this PR, check this box
This PR was generated by Mend Renovate. View the repository job log.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
renovate
Bot
changed the title
chore(deps): update phpstan packages to v2 (major)
chore(deps): update phpstan packages (major)
Nov 11, 2024
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
|