mail
mail copied to clipboard
chore(deps): bump rector/rector from 1.0.2 to ^1.1.1 (main)
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| rector/rector (source) | ^1.0.2 -> ^1.1.1 |
Release Notes
rectorphp/rector (rector/rector)
v1.1.1
v1.1.0: Released Rector 1.1.0
New Features :partying_face:
- [PHPStan] Bump to PHPStan 1.11 (#β5883)
Bugfixes :bug:
- [CodeQuality] Skip increment variable on else on TernaryFalseExpressionToIfRector (#β5867)
- [CodeQuality] Skip on property and class const on CallableThisArrayToAnonymousFunctionRector (#β5869)
- [NodeTypeResolver] Using built int ->isArray()->yes() on ArrayTypeAnalyzer::isArrayType() (#β5870)
- Fix "method x was not found in reflection of class" (#β5871), Thanks @βstaabm!
- [NodeTypeResolver] Clean up array check on NameTypeResolver (#β5872)
- [NodeTypeResolver] Clean up "this" from NameTypeResolver, as not from Name node (#β5873)
- [TypeDeclaration] Skip array by doc with different assign on ReturnTypeFromStrictNewArrayRector (#β5875)
- [TypeDeclaration] Skip possible array on StrictStringParamConcatRector (#β5876)
- [Performance] Ensure call $reflector->reflectAllClasses() once on Worker take 3 (#β5878)
- [Performance] Call cached class names collection on FamilyRelationsAnalyzer (#β5879)
- [NodeTypeResolver] Clean up resolve cache class name key (#β5880)
- [NodeTypeResolver] No need json_decode/json_encode for cache class name collection (#β5881)
- [TypeDeclaration] Handle crash on interface Mixin on ReturnTypeFromStrictConstantReturnRector (#β5884)
- [PHPStan] Handle PHPStan internal ShouldNotHappenException on FamilyRelationsAnalyzer and PHPStanNodeScopeResolver (#β5885)
- [NodeTypeResolver] No need to resolve class name on anonymous classes (#β5886)
- [PHPStan] Fix missingType.generics notice on phpstan.neon on PHPStan 1.11 (#β5888)
- [TypeDeclaration] Skip unitialized property on EmptyOnNullableObjectToInstanceOfRector (#β5889)
- [Php80] Skip remove non-mixed type doc on MixedTypeRector (#β5874)
- [TypeDeclaration] Add test for nullable object usage on AddReturnTypeDeclarationRector (#β5887)
- [Configuration] Add missing LevelSetList::UP_TO_PHP_84 on PhpLevelSetResolver::resolveFromPhpVersion() (#β5890)
v1.0.5: Released Rector 1.0.5
New Features :partying_face:
- [TypeDeclarations] Add IncreaseDeclareStrictTypesRector to raise level of declare() coverage (#β5849)
Bugfixes :bug:
- ExplicitReturnNullRector should skip never return (#β5802), Thanks @βstaabm!
- Make Compatible with phpstan 1.11.x code (#β5804)
- [CodeQuality] Skip Always return in try catch with finally on ExplicitReturnNullRector (#β5807)
- [CodeQuality] Skip never type on default switch on ExplicitReturnNullRector (#β5808)
- [CodeQuality] Skip while(true) always returned on ExplicitReturnNullRector (#β5810)
- [TypeDeclaration] Skip maybe not returned on while on ReturnUnionTypeRector (#β5812)
- [Php81] Skip on property and class const on FirstClassCallableRector (#β5813)
- [Php81] Skip __invoke() usage from non-class code on FirstClassCallableRector (#β5816)
- [Php81] Skip always string if else DomElement on NullToStrictStringFuncCallArgRector (#β5822)
- [TypeDeclaration] Handle crash on @βmixin usage on ReturnTypeFromStrictTypedCallRector (#β5823)
- [Php81] Skip mixed type on ArrayDimFetch on NullToStrictStringFuncCallArgRector (#β5826)
- Fix original quotes in PregReplaceEModifierRector (#β5827)
- [CodeQuality] Skip $counter variable exists on ForRepeatedCountToOwnVariableRector (#β5828)
- [Php81] Use PHPStan ParametersAcceptor to detect allowed argument types on NullToStrictStringFuncCallArgRector (#β5829)
- [Renaming] Skip func call name on RenameClassRector (#β5833)
- Support NullSafeMethod calls in unused-code analysis (#β5838), Thanks @βstaabm!
- Support NullSafeProperty fetches in unused-code analysis (#β5839), Thanks @βstaabm!
- Ignore phpdoc type in RecastingRemovalRector (#β5841), Thanks @βstaabm!
- [Naming] Skip DateTime as individual in name resolver (#β5842)
- [Experiment] Rework child classes detection on DynamicSourceLocatorProvider (#β5735)
- [Printer] Handle Strip left spaces from opening tags on namespaced PHP + HTML content (#β5851)
- [CodeQuality] Fix tautology transformation on identical check on SimplifyTautologyTernaryRector (#β5854)
- [CodeQuality] Skip dynamic second arg or has uppercase second arg on SimplifyStrposLowerRector (#β5855)
- [NodeTypeResolver] Use existing DefaultReflector::reflectAllClasses() method on DynamicSourceLocatorProvider (#β5856)
- [EarlyReturn] Skip with AssignOp on PreparedValueToEarlyReturnRector (#β5857)
- [TypeDeclaration] Handle array with index assigned on TypedPropertyFromAssignsRector (#β5861)
- [TypeDeclaration] Handle return by array shape type on AddArrowFunctionReturnTypeRector (#β5815)
- [CodeQuality] Add Function_ and FuncCall support on OptionalParametersAfterRequiredRector (#β5835)
- [Php83] Handle default native constant on AddTypeToConstRector (#β5843)
- [PHP 7.2] Add error suppres support to each() rule (#β5844)
- [TypeDeclaration] Skip more detailed type on AddMethodCallBasedStrictParamTypeRector (#β5866)
- [DeadCode] Skip $this instanceof in Trait on RemoveAlwaysTrueIfConditionRector (#β5817)
- [DeadCode] Skip $this in trait on RemoveDeadInstanceOfRector (#β5818)
v1.0.4: Released Rector 1.0.4
New Features and Changes :partying_face:
- [Php84] Add ExplicitNullableParamTypeRector (#β5724)
- [Transform] Adds ArrayDimFetchToMethodCallRector rule (#β5723), Thanks @βpeterfox!
- Add support for getOneOrNullResult() method in ChildDoctrineRepositoryClassTypeRector (#β5747)
- Add boolean and support to RemoveDeadInstanceOfRector (#β5748)
- [DeadCode] Add new rule - ReduceAlwaysFalseIfOrRector (https://github.com/rectorphp/rector-src/commit/0dd1a43904e7d12c76e810b1bbd87d99a0f835c3)
- [CodeQuality] Add new rule - ExplicitReturnNullRector (#β5753)
- [CodeQuality] Transform type|void docblock to type|null as well on ExplicitReturnNullRector after add return null (https://github.com/rectorphp/rector-src/commit/576198cf701684dd85ed42530bcb8c54b6c41a02)
- [CodeQuality] Add Function_ support on ExplicitReturnNullRector (#β5762)
- [CodeQuality] Add Goto_ possible return null on SilentVoidResolver under Do_ (#β5773)
- Add
rectortest suite tophpunit.xmlorphpunit.xml.dist(#β5717), Thanks @βghostwriter! - [Php82] Add VariableInStringInterpolationFixerRector (#β5781)
- [DeadCode] Add RemoveUselessReadOnlyTagRector (https://github.com/rectorphp/rector-src/commit/ef333de3d58a4649558971b19f4814fd92823abe)
Bugfixes :bug:
- [php84] Clean up contains null check type on ExplicitNullableParamTypeRector (#β5726)
- Fixes for ArrayDimFetchToMethodCallRector (#β5727), Thanks @βpeterfox!
- Update ArrayDimFetchToMethodCall to use ObjectType (#β5728), Thanks @βpeterfox!
- [Configuration] Do not sets, skip, rules on empty array on RectorConfigBuilder (#β5731)
- [Php81] Skip $this::class on trait on NullToStrictStringFuncCallArgRector (#β5732)
- [Dep] Temporary pin to use nikic/php-parser 4.18.0 (#β5733)
- Handle readonly class with attrs (#β5736), Thanks @βtugmaks!
- [Scoper] Handle use nette/utils on php < 7.4 on 6th param on preg_replace_callback() (https://github.com/rectorphp/rector-src/commit/fd9e17209bc91983324f07902980d9957c232673)
- [Renaming][AutoImport] Handle after change annotation to attribute with rename on AnnotationToAttributeRector + RenameClassRector with auto import (#β5741)
- [Php80] Skip var property usage on ClassPropertyAssignToConstructorPromotionRector (#β5744)
- [Php80] Use identical compare on PromotedPropertyCandidateResolver (#β5745)
- Fix ChildDoctrineRepositoryClassTypeRector for generic type (#β5746)
- [DeadCode] Skip From docblock on ReduceAlwaysFalseIfOrRector (https://github.com/rectorphp/rector-src/commit/f32dff3ddb3bb8062fced070984017352f2b653a)
- [CodeQuality] Skip if else return on ExplicitReturnNullRector (#β5755)
- [CodeQuality] No need to re-update doc when already union null doc on ExplicitReturnNullRector (#β5757)
- [CodeQuality] Skip __construct() method on ExplicitReturnNullRector (#β5758)
- [CodeQuality] Move Yield_ and YieldFrom check to SilentVoidResolver (#β5759)
- [CodeQuality] Skip do { } while always returned on ExplicitReturnNullRector (https://github.com/rectorphp/rector-src/commit/cae06912ed7d7274d900fdc996448f100be2ed34)
- [CodeQuality] Allow transform return; to return null; when there is other return with Expr on ExplicitReturnNullRector (#β5761)
- [AutoImport] Allow auto import same namespace with sub use with docblock short name (https://github.com/rectorphp/rector-src/commit/e3e741edd3ca55fc2c24c040f43c8974bda7e953)
- [CodeQuality] Handle do { } while maybe returned on ExplicitReturnNullRector (#β5766)
- More fixture on Do_ maybe returned (#β5767)
- [DeadCode] Fix array callable with constructor args (#β5770), Thanks @βhogejiro!
- [TypeDeclaration] Ensure always return with Expr on maybe continued in next stmt on SilentVoidResolver (#β5771)
- [Scope] Fix resolve Scope from fluent call (#β5743)
- Clean up scope skip scope check on ExprScopeFromStmtNodeVisitor (#β5776)
- [NodeCollector] Fix non-string value on ArrayCallableMethodMatcher::resolveClassContextType() (#β5780)
- [Printer] Apply configurable multiline on Fluent Method Call on print after method call created/re-printed (#β5779)
- [TypeDeclaration] Handle initialized on getter on ReturnTypeFromStrictTypedPropertyRector (#β5784)
- [TypeDeclaration] Handle in inner function on ReturnTypeFromStrictTernaryRector (#β5785)
- [TypeDeclaration] Do not use Required::class reference on AutowiredClassMethodOrPropertyAnalyzer (#β5788)
- [Performance][Php81] Early property promotion and readonly param check before changeable check on ReadOnlyPropertyRector (#β5791)
- Fix removal of useless @βparam tag when string|null insteadof ?string is used. (#β5684), Thanks @βarjenschol
- [DeadCode] Clean up TypeHasher on Union Type (#β5792)
- [NodeTypeResolver] Move UnionType doc vs FullyQualified native type as not equal to TypeComparator (#β5793)
- Support @βimmutable phpdoc in RestoreDefaultNullToNullableTypePropertyRector(#β5795), Thanks @βstaabm
- [CodeQuality] Skip Switch_ always returned on ExplicitReturnNullRector (#β5800)
- [CodeQuality] Handle Switch maybe return on ExplicitReturnNullRector (#β5801)
- [DeadCode] Skip use docblock on BooleanAnd check on RemoveDeadInstanceOfRector (#β5751)
- [DeadCode] Skip isset() from property fetch from docblock on RemoveAlwaysTrueIfConditionRector (#β5754)
Removed :skull:
- [code-quality] Remove intval/strval from sets, as no clear difference and personal preference (#β5721)
- [CodeQuality] Remove BoolvalToTypeCastRector and FloatvalToTypeCastRector as well from code-quality set (#β5722)
- [CodingStyle] Remove usage of Reflection::expandClassName() from nette/utils 4.0 as cause bug on downgrade (#β5740)
- [DeadCode] Skip implements interface on RemoveUnusedConstructorParamRector (#β5778)
- [DeadCode] Skip Array Callable dynamic method using CLASS with constructor (no default args) on RemoveUnusedPrivateMethodRector (#β5774), Thanks @βhogejiro
- [Php81] Remove @βreadonly doc on transformation to native readonly on ReadOnlyPropertyRector (#β5789)
- [DeadCode] Remove union with interface on RemoveUselessParamTagRector to make it consistent (#β5794)
- [DeadCode] Skip property fetch on cond as may be overridden on RemoveAlwaysTrueIfConditionRector (#β5796)
- [DeadCode] Skip @βparam true on native bool type on RemoveUselessParamTagRector (#β5798)
- ArgumentRemoverRectorTest: replace symfony\yaml reference with dummy (#β5799), Thanks @βjanedbal!
v1.0.3: Released Rector 1.0.3
New Features and Improvements :partying_face:
- [TypeDeclaration] Add
ChildDoctrineRepositoryClassTypeRector(#β5695) - [TypeDeclaration] No need check parent method when method is private on AddVoidReturnTypeWhereNoReturnRector (#β5690)
- [Php83] Add support +/- value on constant on AddTypeToConstRector (#β5694)
- Add dump_node() helper function (#β5696)
- [CodeQuality] Add Equal and NotEqual support on SimplifyIfReturnBoolRector (#β5697)
- [CodeQuality] Add support for compare $this::class compare with string on UseIdenticalOverEqualWithSameTypeRector (#β5698)
Bugfixes :bug:
- [Configuration] Fix parallel config always replaced by next config per-default true (#β5683)
- [CodingStyle] Skip anonymous class on MakeInheritedMethodVisibilitySameAsParentRector (#β5688)
- [Php80] Fix typo class name: DoctrineCoverterterAttributeDecorator -> DoctrineConverterAttributeDecorator (#β5689)
- [Php81] Handle with attribute on ReadOnlyPropertyRector on property promotion (#β5692)
- [Php72][TypeDeclaration] Fix infinite loop on ParseStrWithResultArgumentRector+DeclareStrictTypesRector (#β5699)
- [CodeQuality] Skip sort/ksort on TernaryFalseExpressionToIfRector (#β5703)
- fix: Strip left spaces from opening tags when comparing output for changes (#β5701), Thanks @βstilliard!
- [CodingStyle] Skip implements interface on MakeInheritedMethodVisibilitySameAsParentRector (#β5707)
- [CodeQuality] Skip throw after foreach with return in loop on SimplifyForeachToCoalescingRector (#β5714)
- Skip mixed in ParamTypeByMethodCallTypeRector as not specific (#β5715)
- [CodeQuality] Skip compare string with stringable object on UseIdenticalOverEqualWithSameTypeRector (#β5718)
- [Php80] Skip ObjectType on ChangeSwitchToMatchRector (#β5719)
Configuration
π Schedule: Branch creation - "before 5am on wednesday" in timezone Europe/Vienna, Automerge - At any time (no schedule defined).
π¦ Automerge: Enabled.
β» Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
π Ignore: Close this PR and you won't be reminded about this update again.
- [ ] If you want to rebase/retry this PR, check this box
This PR has been generated by Mend Renovate. View repository job log here.