chore(deps): update dependency rector/rector to v2 #11
No reviewers
Labels
No labels
bug
dependencies
docker
documentation
duplicate
enhancement
github_actions
good first issue
help wanted
invalid
php
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
jorijn/bitcoin-dca!11
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "renovate/rector-rector-2.x"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This PR contains the following updates:
^0.15.24→^2.0.0Release Notes
rectorphp/rector (rector/rector)
v2.4.2: Released Rector 2.4.2Compare Source
New Features 🥳
Bugfixes 🐛
rectorphp/rector-symfony 🎵
v2.4.1: Released Rector 2.4.1Compare Source
New Features 🥳
RemoveUselessTernaryRector(#7961)CoalesceToTernaryRector(#7960)--rules-summaryoption to display applied rules summary with count (#7874), Thanks @carlos-granados!#[Override]attribute to methods implementing interfaces (#7934), Thanks @hockdudu!Bugfixes 🐛
Deprecations 💀
NewInInitializerRectoras depends on context (#7913)v2.4.0: Released Rector 2.4.0Compare Source
New Features 🥳
SafeDeclareStrictTypesRectorto code quality set (#7935), Thanks @calebdw!Bugfixes 🐛
Removed 💀
rectorphp/rector-symfony 🎵
rectorphp/rector-doctrine 🟠
rectorphp/rector-phpunit 🟢
v2.3.9: Released Rector 2.3.9Compare Source
New Features 🥳
StrictInArrayRector(#7921)Bugfixes 🐛
rectorphp/rector-symfony 🎵
rectorphp/rector-doctrine 🟠
rectorphp/rector-phpunit 🟢
v2.3.8: Released Rector 2.3.8Compare Source
Bugfixes 🐛
rectorphp/rector-symfony
v2.3.7: Released Rector 2.3.7Compare Source
New Features 🥳
Bugfixes 🐛
RemoveParentDelegatingConstructorRector(#7900), Thanks @marcreichel!rectorphp/rector-symfony 🎵
rectorphp/rector-phpunit 🟢
BehatPHPUnitAssertToWebmozzartRector(#658)AddKeysExistsAssertForKeyUseRector(#657)rectorphp/rector-downgrade-php ⬇️
DowngradeUnionIntersectionRector(#363)v2.3.6: Released Rector 2.3.6Compare Source
New Features 🥳
rector.dist.phpdist file (#7845), Thanks @carlos-granados!Bugfixes 🐛
rectorphp/rector-symfony 🎵
rectorphp/rector-phpunit 🟢
v2.3.5: Released Rector 2.3.5Compare Source
New Features 🥳
SafeDeclareStrictTypesRector(#7814), Thanks @calebdw!Bugfixes 🐛
rectorphp/rector-symfony 🎵
rectorphp/rector-doctrine 🟠
rectorphp/rector-phpunit 🟢
NoSetupWithParentCallOverrideRector(#617)DirectInstanceOverMockArgRector(#609)CreateStubOverCreateMockArgRector(#608)v2.3.4: Released Rector 2.3.4Compare Source
Bugfixes 🐛
v2.3.3: Released Rector 2.3.3Compare Source
Bugfixes 🐛
61f8719Pin PHPStan 2.1.34, as 2.1.35 introduced a complex regression breaking Rector - see rectorphp/rector-src#7847v2.3.2: Released Rector 2.3.2Compare Source
New Features 🥳
DeprecatedAnnotationToDeprecatedAttributeRectorfor PHP 8.5 to explicit ConstAndTraitDeprecatedAttributeRector, add trait suport (#7823)Bugfixes 🐛
rectorphp/rector-phpunit 🟢
v2.3.1: Released Rector 2.3.1Compare Source
New Features and Changes 🥳
AddReturnDocblockForDimFetchArrayFromAssignsRector(#7792)AddReturnDocblockFromMethodCallDocblockRector(#7796)AddVarArrayDocblockFromDimFetchAssignRector(#7801)RemoveDeadIfBlocksRector(#7528), Thanks @john-shaffer!RemoveVoidDocblockFromMagicMethodRector(#7822) - Thanks @parijke!Bugfixes 🐛
AddReturnDocblockFromMethodCallDocblockRector(#7797)AddReturnDocblockFromMethodCallDocblockRector(#7798)DocblockReturnArrayFromDirectArrayInstanceRector(#7795)AddTypeToConstRector(#7804)RemoveNextSameValueConditionRectorin dead-code set (#7790)v2.3.0: Released Rector 2.3Compare Source
New Features 🥳
FileNodeto handle file-level changes (#7728) to be used instead ofFileWithoutNamespacenode - see https://github.com/rectorphp/rector-src/blob/main/UPGRADING.md for the upgradePrivatizeFinalClassConstantRector(#7753), Thanks @simonschaufi!RemoveParentDelegatingConstructorRector(#7769)Bugfixes 🐛
SymplifyQuoteEscapeRectordeprecated rule for BC layer (#7744)SortNamedParamRectortoSortCallLikeNamedArgsRectorto be more clear about the intent (#7751)Removed 💀
rectorphp/rector-symfony 🎵
rectorphp/rector-doctrine 🟠
FileNode(#474)rectorphp/rector-phpunit 🟢
v2.2.14: Released Rector 2.2.14Compare Source
Bugfixes 🐛
FirstClassCallableRectorand mark as deprecated to keep BC (#7742)v2.2.13: Released Rector 2.2.13Compare Source
Bugfixes 🐛
v2.2.12: Released Rector 2.2.12Compare Source
Bugfixes 🐛
NewlineBetweenClassLikeStmtsRector(#7698), Thanks @parth391!SetTypeToCastRector(#7699)NodeTravser::*where possible, use node visitor attribute key instead (#7697)Removed and Deprecated 💀
rectorphp/rector-symfony 🎵
RemoveEraseCredentialsRectorfrom symfony 7.3 to symfony 8.0 (#895), Thanks @EJTJ3ControllerMethodInjectionToConstructorRector(#894)ControllerMethodInjectionToConstructorRector(#893)v2.2.11: Released Rector 2.2.11Compare Source
Bugfixes 🐛
Removed and Deprecated 💀
rectorphp/rector-symfony
RemoveEraseCredentialsRectorfrom symfony 7.3 to symfony 8.0 (#895), Thanks @EJTJ3ControllerMethodInjectionToConstructorRector(#894)ControllerMethodInjectionToConstructorRector(#893)v2.2.10: Released Rector 2.2.10Compare Source
New Features and Improvements 🥳
SortNamedParamRector(#7684), Thanks @VincentLanglet!Bugfixes 🐛
NewlineBetweenClassLikeStmtsRector(#7687)ShortenElseIfRector(#7686)rectorphp/rector-symfony 🎵
rectorphp/rector-phpunit 🟢
v2.2.9: Released Rector 2.2.9Compare Source
New Features and Changes 🥳
RemoveReturnThisFromSetterClassMethodRector(#7624)FluentSettersToStandaloneCallMethodRector(#7625)RemoveNextSameValueConditionRector(#7525)StmtsAwareInterfaceinterface and replace with meta-type + groups (#7679) - How to upgrade?Bugfixes 🐛
ClosureFromCallableToFirstClassCallableRector(#7632), Thanks @devnix!spl_object_id()if no change in AbstractRector (#7653)440d6d7)Removed 💀
rectorphp/rector-symfony 🎵
rectorphp/rector-phpunit 🟢
v2.2.8: Released Rector 2.2.8Compare Source
New Features 🥳
Bugfixes 🐛
Removed 💀
rectorphp/rector-symfony 🎵
rectorphp/rector-phpunit 🟢
rectorphp/rector-downgrade-php ⬇️
v2.2.7: Released Rector 2.2.7Compare Source
New Features 🥳
Bugfixes 🐛
842aa94)rectorphp/rector-symfony 🎵
rectorphp/rector-phpunit 🟢
v2.2.6: Released Rector 2.2.6Compare Source
New Features 🥳
NestedToPipeOperatorRector(#7577)DirnameDirConcatStringToDirectStringPathRector(#7552)RemoveNullArgOnNullDefaultParamRector(#7562)4d78f41)80f7db8)Bugfixes 🐛
08f6dc3)c5d9fdf)cd7eb93)0ca4e91)Removed and Deprecated 💀
rectorphp/rector-symfony 🎵
rectorphp/rector-phpunit 🟢
v2.2.5: Released Rector 2.2.5Compare Source
Rules Registered in sets 🥳
Couple long-existing rules were added to PHP 8.1, code quality and type declaration sets after optional community testing ✔️
If you'll experience any undersired changes, let us know 👍
68bb0cc)38ecb98)1ae7187)0e18562)e164069)d229205)Bugfixes 🐛
Removed and deprecated 💀
rectorphp/rector-phpunit 🟢
v2.2.4: Released Rector 2.2.4Compare Source
New Features 🥳
Bugfixes 🐛
AddParamStringTypeFromSprintfUseRector(#7479)BracketsAwareUnionTypeNode(#7462)VariableConstFetchToClassConstFetchRectoras may cause side effect (#7464)BinaryOpStandaloneAssignsToDirectRector(#7469)Removed and deprecated 💀
strict-typesrules as risky and not practical (#7523)rectorphp/rector-phpunit
v2.2.3: Released Rector 2.2.3Compare Source
New Features 🥳
VariableConstFetchToClassConstFetchRector(#7457)BinaryOpStandaloneAssignsToDirectRector(#7466)AddParamStringTypeFromSprintfUseRector(#7477)Bugfixes 🐛
Removed 💀
3ff3caa)v2.2.2: Released Rector 2.2.2Compare Source
This release contains important fix for Rector custom rules running on PHPUnit 12.2+ ✔️
PHPUnit started to preload it's own
php-parserversion, that conflicts with Rector's one. Now we preload our side first again. Your tests shall run 👍 If not: let us know in: #9416New Features 🥳
AddParamArrayDocblockBasedOnArrayMapRector(#7435)ShellExecFunctionCallOverBackticksRector(#7445)Bugfixes 🐛
v2.2.1: Released Rector 2.2.1Compare Source
Bugfixes 🐛
v2.2.0: Released Rector 2.2Compare Source
This release includes dozens of fixes, new PHP and Type Declaration rules, many Symfony Console rules improvements...
...and one brand new set: type coverage docblocks 🎉 🎉 🎉
Read the gist on our blog - Rector 2.2: New rules for Array Docblocks
New Features and Improvements 🚀
New rules for Type Coverage Docblocks:
RemoveUnusedVariableUseRector(#7430)RepeatedOrEqualToInArrayRector(#7400)NullToStrictIntPregSlitFuncCallLimitArgRector(#7240)KnownMagicClassMethodTypeRector(#7419)AddParamFromDimFetchKeyUseRector(#7424)CallUserFuncArrayToVariadicRector(#7428)Bugfixes 🐛
FunctionLikeToFirstClassCallableRector(#7265), Thanks @calebdw!EnumCaseToPascalCaseRectorskips existing pascal case (#7264), Thanks @calebdw!Removed 💀
Rector Symfony 🎵
Rector Doctrine 🟠
Rector PHPUnit 🟢
v2.1.7: Released Rector 2.1.7Compare Source
New Features 🥳
Bugfixes 🐛
rectorphp/rector-symfony 🎵
rectorphp/rector-doctrine 🟠
rectorphp/rector-phpunit 🟢
v2.1.6: Released Rector 2.1.6Compare Source
rectorphp/rector-phpunit
v2.1.5: Released Rector 2.1.5Compare Source
New Features 🥳
RemoveDuplicatedCaseInSwitchRectorand adding test cases (#7175), Thanks @max-s-lab!FILTER_DEFAULTtoFILTER_UNSAFE_RAW(#7209), Thanks @ddevsr!@deprecatedto#[\Deprecated]on constants (#7155), Thanks @DanielEScherzer!Bugfixes 🐛
RemoveDuplicatedCaseInSwitchRectorbehavior (#7173), Thanks @max-s-lab!PHP_EOLwith\nwhen used with symfony console (#7174), Thanks @FeBe95!Removed and reprecated 💀
rectorphp/rector-symfony 🎵
rectorphp/rector-phpunit 🟢
rectorphp/rector-downgrade-php
v2.1.4: Released Rector 2.1.4Compare Source
Bugfixes 🐛
v2.1.3: Released: Rector 2.1.3Compare Source
New Features 🥳
ClosureFromCallableToFirstClassCallableRectorrule (#7071), Thanks @devnix!RemoveReflectionSetAccessibleCallsRector(#7085), Thanks @NickSdot!RemoveReadonlyPropertyVisibilityOnReadonlyClassRector(#7115), Thanks @calebdw!RenameCastRector(#7117), Thanks @mttsch!PHP 8.5 🚀
Bugfixes 🐛
rectorphp/rector-symfony 🎵
rectorphp/rector-doctrine 🟠
rectorphp/rector-phpunit 🟢
v2.1.2: Released Rector 2.1.2Compare Source
Bugfixes 🐛
New Features 🥳
Removed 💀
rectorphp/rector-symfony
rectorphp/rector-doctrine
rectorphp/rector-phpunit
rectorphp/rector-downgrade-php
v2.1.1: Released Rector 2.1.1Compare Source
New Features 🥳
Bugfixes 🐛
rectorphp/rector-symfony 🎵
rectorphp/rector-doctrine 🟠
rectorphp/rector-phpunit 🟢
v2.1.0: Released Rector 2.1Compare Source
This release comes with new PHP 8.4 rules and 2 new config options, that make rules more powerful 💪
New Features 🥳
TernaryImplodeToImplodeRector(#6994)In this release we also add 2 DX features to streamline upgrades:
--kaizenoption to apply only first X rules at a time (#6876)Bugfixes 🐛
rectorphp/rector-symfony 🎵
rectorphp/rector-doctrine 🟠
v2.0.19Compare Source
v2.0.18: Released: Rector 2.0.18Compare Source
New Features 🥳
Bugfixes 🐛
rectorphp/rector-symfony 🎵
rectorphp/rector-doctrine 🟠
rectorphp/rector-downgrade-php ⬇️
v2.0.17: Released: Rector 2.0.17Compare Source
New Features 🥳
Bugfixes 🐛
695228f)Removed 💀
rectorphp/rector-symfony 🎵
rectorphp/rector-doctrine 🟠
rectorphp/rector-phpunit 🟢
v2.0.16: Released Rector 2.0.16Compare Source
New Features 🥳
Bugfixes 🐛
rectorphp/rector-symfony 🎵
rectorphp/rector-doctrine 🟠
#[AsListener]attribute location to doctrine bundle 2.8, deprecate doctrine constants and refer to composer based sets (#382)rectorphp/rector-phpunit 🟢
v2.0.15: Released Rector 2.0.15Compare Source
New features and changes 🎉
Bugfixes 🐛
rectorphp/rector-symfony 🎵
rectorphp/rector-phpunit 🟢
v2.0.14: Released Rector 2.0.14Compare Source
Bugfixes 🐛
v2.0.13: Released Rector 2.0.13Compare Source
Bugfixes 🐛
rectorphp/rector-symfony 🎵
rectorphp/rector-doctrine 🟠
v2.0.12: Released Rector 2.0.12Compare Source
New Features 🥳
Bugfixes 🐛
SetListInterfaceto Rector 2.0 (#6816), Thanks @alexander-schranz!rectorphp/rector-symfony 🎵
rectorphp/rector-doctrine 🟠
rectorphp/rector-phpunit 🟢
v2.0.11: Released Rector 2.0.11Compare Source
New Features 🎉
AddParamTypeBasedOnPHPUnitDataProviderRector(#6772)AddArrowFunctionReturnTypeRector(#6780)AddEscapeArgumentRector(#6782)(#6790)
RemoveFilterVarOnExactTypeRector(#6792)@carlos-granados!
NewMethodCallWithoutParenthesesRector(#6802)FunctionLikeToFirstClassCallableRector(#6667), Thanks @peterfox!date,strtotime, andtimecalls withCarbonequivalents (#6749), Thanks @gollumeo!Bugfixes 🐛
AddReturnArrayDocblockBasedOnArrayMapRector(#6800), Thanks @carlos-granados!AddParamTypeBasedOnPHPUnitDataProviderRector(#6799), ThankswithRules()and sets, keeping them once to avoid duplication (#6761)StaticCallToMethodCallRector(#6789), Thanks @parth391!MultiDirnameRector(#6796), Thanks @carlos-granados!ConsecutiveNullCompareReturnsToNullCoalesceQueueRector(#6797), Thanks @carlos-granados!WrapReturnRector(#6798), Thanks @carlos-granados!ArgumentDefaultValueReplacer(#6795), Thanks @carlos-granados!ParamTypeByMethodCallTypeRector(#6803), Thanks @carlos-granados!SimplifyIfElseToTernaryRectorto handle binary operations on the left (#6810)AnonymousFunctionFactoryto disallow superglobal variables in use statements (#6811), Thanks @bryannielsen!Removed & Deprecations 🗑️
withPhpPolyfill()method and error onwithPhpSets()misuse on PHP 7.4- projectsRemoveUnusedPromotedPropertyRector(#6765)RemoveDeadLoopRector(#6770)AbstractScopeAwareRector(#6791)rectorphp/rector-symfony 🎵
RequestIsMainRector(#708)InvokableCommandRector- kick off (#707)InlineClassRoutePrefixRectorto concatenate name annotation/attribute (#704)rectorphp/rector-doctrine 🟠
AddAnnotationToRepositoryRectorrule (#375), Thanks @JohJohanCastDoctrineExprToStringRector(#372), Thanks @JohJohanMakeEntityDateTimePropertyDateTimeInterfaceRector(#376)rectorphp/rector-phpunit 🟢
RemoveDataProviderParamKeysRector(#469)AddInstanceofAssertForNullableInstanceRector(#466)AssertCompareToSpecificMethodRector(#468)AssertCountWithZeroToAssertEmptyRectorfor better readability with explicit methods (#467)v2.0.10: Released Rector 2.0.10Compare Source
New Features 🥳
Bugfixes 🐛
__DIR__and__FILE__onValueResolver(#6756)rectorphp/rector-symfony
rectorphp/rector-doctrine
rectorphp/rector-phpunit
v2.0.9: Released Rector 2.0.9Compare Source
Bugfixes 🐛
v2.0.8: Released Rector 2.0.8Compare Source
New Features 🥳
Bugfixes 🐛
v2.0.7: Released Rector 2.0.7Compare Source
New Features 🥳
withSetProvidersmethod (#6515), Thanks @ghostwriter!Bugfixes 🐛
rectorphp/rector-symfony 🎵
rectorphp/rector-doctrine 🟠
rectorphp/rector-phpunit 🟢
v2.0.6: Released: Rector 2.0.6Compare Source
New Features 🥳
Bugfixes 🐛
Removed 💀
v2.0.5: Released: Rector 2.0.5Compare Source
This release support PHP-Parser 5.4.0 and PHPStan 2.1.0
Feature
Removed 💀
Bugfixes 🐛
v2.0.4: Released Rector 2.0.4Compare Source
New Features 🥳
Bugfixes 🐛
withRootFilesnow apply rector for dotfiles too (#6592), Thanks @andrew-demb!.phpstorm.meta.phpbecause this is not PHP file (#6594), Thanks @andrew-demb!Removed 💀
ClassChildAnalyzer-> hasParentClassMethod()(#6595), Thanks @staabm!v2.0.3Compare Source
v2.0.2Compare Source
v2.0.1Compare Source
v2.0.0: Released Rector 2.0Compare Source
Rector 2.0 is here 🥳
The main purpose of this release is performance improvements, thanks to modern dependencies:
We've managed to fit in couple cool features: 5 New Features in Rector 2.0
For custom rules writers, see upgrading guide. The rest of upgrade is straighforward 🎉
To celebrate the upgrade, we're also modernized our logo! 🤩
New Features and Improvements 🎉
Deprecated and Removed 💀
PublicConstantVisibilityRector, cleanup deprecatedSetListInterface(#6424)AbstractTestCase(#6426)Bugfixes 🐛
ector (#6498)
]fixture on NestedAnnotationToAttributeRector (#6537)rectorphp/rector-symfony 🎵
GetBySymfonyStringToConstructorInjectionRector(#688)TraitGetByTypeToInjectRector(#687)CommandGetByTypeToConstructorInjectionRectorto make migration smoother (#686)GetByTypeMethodCallToConstructorInjectionRectorto make migration smoother (#685)rectorphp/rector-doctrine 🟠
rectorphp/rector-phpunit 🟢
v1.2.10: Released Rector 1.2.10Compare Source
New Features 🥳
Bugfixes 🐛
Removed 💀
rectorphp/rector-phpunit 🟢
CreateMockToDirectNewRector(#402)SingleMockPropertyTypeRector(#401)FlipAssertRector(#397)AssertCompareOnCountableWithMethodToAssertCountRector(#395)v1.2.9: Released Rector 1.2.9Compare Source
Bugfixes 🐛
Removed 💀
rectorphp/rector-symfony 🎵
rectorphp/rector-phpunit 🟢
v1.2.8: Released Rector 1.2.8Compare Source
Bugfixes 🐛
New Features 🥳
v1.2.7: Released Rector 1.2.7Compare Source
New Features 🥳
Bugfixes 🐛
Removed 💀
rectorphp/rector-symfony 🎵
rectorphp/rector-phpunit 🟢
v1.2.6: Released Rector 1.2.6Compare Source
New Features 🥳
Bugfixes 🐛
rectorphp/rector-symfony 🎵
rectorphp/rector-phpunit 🟢
v1.2.5: Released Rector 1.2.5Compare Source
New Features and Improvements 🥳
AddClosureParamTypeFromArgRector(#6258)AddClosureParamTypeFromObjectRector(#6265), Thanks @peterfox!Bugfixes 🐛
Removed 💀
rectorphp/rector-symfony 🎵
rectorphp/rector-doctrine 🟠
Criteria::orderBymethod calls (#336), Thanks @julienfastrev1.2.4: Released Rector 1.2.4Compare Source
Bugfixes 🐛
New Features 🥳
ScalarValueToConstFetchRectorrule (#6195), Thanks @peterfox!AddParamArrayDocblockBasedOnCallableNativeFuncCallRector(#6233)AddReturnArrayDocblockBasedOnArrayMapRector(#6235)Deprecated 💀
PublicConstantVisibilityRector, as adds public blindly everywhere; use scope-based approach instead (#6238)rectorphp/rector-symfony 🎵
rectorphp/rector-doctrine 🟠
rectorphp/rector-phpunit 🔵
v1.2.3: Released Rector 1.2.3Compare Source
New Features 🥳
Bugfixes 🐛
Removed 💀
rectorphp/rector-symfony 🎵
rectorphp/rector-doctrine 🟠
rectorphp/rector-phpunit 🔵
v1.2.2: Released Rector 1.2.2Compare Source
New Features 🥳
Bugfixes 🐛
v1.2.1: Released Rector 1.2.1Compare Source
New Features 🥳
Bugfixes 🐛
d102bd1)Removed and deprecated 💀
rectorphp/rector-symfony
rectorphp/rector-doctrine
rectorphp/rector-phpunit
v1.2.0: Released Rector 1.2.0Compare Source
New Rules 🚀
New Features 🥳
withDowngradeSets()to better target downgrades (#6015)alwaysconfig for EncapsedStringsToSprintfRector (#6050), Thanks @ruudk!only_direct_assignconfig for SimplifyUselessVariableRector (#6034), Thanks @ruudk!Bugfixes 🐛
Removed and Deprecated 💀
442bff7)This is first release that includes news from other Rector core rules, so you know about all the hot stuff 😇
Symfony (rectorphp/rector-symfony)
New Rules and Improvements
Deprecated
Doctrine - rectorphp/rector-doctrine
PHPUnit - rectorphp/rector-phpunit
v1.1.1: Released Rector 1.1.1Compare Source
[Performance] Fix huge performance hit by reverting children class detection (#5995) - fixes #8679, #8638, #8637
New Rules
New Features and DX improvements 🥳
withPhpPolyfills()method to add polyfill rules (#5981) rectorphp/rector-src#5983Bugfixes 🐛
Removed and Deprecated 💀
v1.1.0: Released Rector 1.1.0Compare Source
New Features 🥳
Bugfixes 🐛
v1.0.5: Released Rector 1.0.5Compare Source
New Features 🥳
Bugfixes 🐛
v1.0.4: Released Rector 1.0.4Compare Source
New Features and Changes 🥳
0dd1a43)576198c)rectortest suite tophpunit.xmlorphpunit.xml.dist(#5717), Thanks @ghostwriter!ef333de)Bugfixes 🐛
fd9e172)f32dff3)cae0691)e3e741e)Removed 💀
v1.0.3: Released Rector 1.0.3Compare Source
New Features and Improvements 🥳
ChildDoctrineRepositoryClassTypeRector(#5695)Bugfixes 🐛
v1.0.2: Released Rector 1.0.2Compare Source
New Features and changes 🥳
Bugfixes 🐛
v1.0.1: Released Rector 1.0.1Compare Source
New Features 🥳
Bugfixes 🐛
5edb023)Removed 💀
v1.0.0: Released Rector 1.0.0 🎉🎉🎉Compare Source
The stable Rector version is here. It was about time and we've done all planned changes by the end of 2023.
What could be better time and place to release a stable Rector than live on stage during talk 🎉
While this release brings stable API, it will be easier to stay up to date as well. The 1.x versioning behaves as expected with
composer update(compared to special 0.x).Our main focus is on improving developers experience. This release brings new features that help with custom rules writing, adding Rector to CI and adding Rector to any legacy project in general.
Some features are partially available in previous version, but we'd like to highligh them because since 1.0 you can use them all together.
Zen Config with Autocomplete
If you run Rector for the first time, it will create a
rector.phpconfig with your project paths for you. In past we used various class constants references to add commonly used rule sets. This required knowledge about these classes and was often missed.We've changed this to work with single configuration class. It provides autocomplete for available sets, including attributes:
PHP Sets Automated
To keep up to date with you PHP, now you can use single method:
It learns about PHP version from your
composer.jsonand will always keep sync with your required PHP version. No need to double checkrector.phpconfiguration anymore.Streamline Integration to Projects
We're also adding 2 experimental methods, that make Rector integration to new projects easier. Before, you could run whole type declaration or read code set, see 1000 changed files and rather close it being overwhelmed. Instead, we want to take it slow, as we do with our custom upgrades as well:
Now you can improve your code base one rule at a time. The rules are sorted from the easiest to integrate, e.g. add
voidto closure, to more complex one. That way you can improve your code base in your own pace. We're collecting feedback on rule order, so the levels will likely change.New and Improved Commands
Call the command, type the rule name and rule, its test and composer autoload is generated for you. So you can focus on the contents of
refactor()method.The command handles generic setup for you and then guides you to register needed access.
v0.19.8: Released Rector 0.19.8Compare Source
New Features 🥳
Bugfixes 🐛
v0.19.7: Released Rector 0.19.7Compare Source
Bugfixes 🐛
02a088c)v0.19.6: Released Rector 0.19.6Compare Source
New Features and Changes 🥳
Bugfixes 🐛
Removed 💀
v0.19.5: Released Rector 0.19.5Compare Source
New Features 🎉
v0.19.4: Released Rector 0.19.4Compare Source
Bugfixes 🐛
v0.19.3: Released Rector 0.19.3Compare Source
New Features ahd Changes 🥳
Bugfixes 🐛
Removed 💀
v0.19.2: Released Rector 0.19.2Compare Source
New features and Changes 🎉
Bugfixes 🐛
Removed 💀
v0.19.1Compare Source
v0.19.0: Released Rector 0.19.0Compare Source
In this release we merged 2 directories into
/srcto speed up class loading and make work with code easier. This leads to BC change in namespace for your custom rules:That's it!
New Features 🥳
ReturnTypeFromStrictScalarReturnExprRector(#5364), Thanks @RobertMe!Bugfixes 🐛
__invoke()method on AddVoidReturnTypeWhereNoReturnRector (#5376)ReturnTypeFromStrictBoolReturnExprRectorsupport for if/else returns (#5384)Removed 💀
a326b85)v0.18.13: Released Rector 0.18.13Compare Source
New Features 🥳
Bugfixes 🐛
$thisin RenameForeachValueVariableToMatchExprVariableRector (#5360), Thanks @sreichel!v0.18.12: Released Rector 0.18.12Compare Source
New Features 🥳
Bugfixes 🐛
v0.18.11: Released Rector 0.18.11Compare Source
Bugfixes 🐛
Removed 💀
v0.18.10: Released Rector 0.18.10Compare Source
Bugfixes 🐛
v0.18.9: Released Rector 0.18.9Compare Source
New Features 🥳
Bugfixes 🐛
v0.18.8: Released Rector 0.18.8Compare Source
Bugfixes 🐛
v0.18.7: Released Rector 0.18.7Compare Source
New Features 🥳
Bugfixes 🐛
@readonlyphpdoc (#5233), Thanks @staabm!ArraySpreadInsteadOfArrayMergeRectorfromLevelSetList::UP_TO_PHP_74(#5228), Thanks @staabm!v0.18.6: Released Rector 0.18.6Compare Source
New Features and Changes 🥳
Bugfixes 🐛
__construct()in BoolReturnTypeFromStrictScalarReturnsRector (#5133), Thanks @staabm!v0.18.5: Released Rector 0.18.5Compare Source
New Features and Improvements 🥳
51ed7b6)Bugfixes 🐛
Removed and Deprecated 💀
v0.18.4: Released Rector 0.18.4Compare Source
New Features and Improvements 🥳
Bugfixes 🐛
Removed and Deprecated 💀
v0.18.3: Released Rector 0.18.3Compare Source
New Features and Changes 🥳
Bugfixes 🐛
Removed 💀
v0.18.2: Released Rector 0.18.2Compare Source
New Features and Changes 🥳
Bugfixes 🐛
v0.18.1: Released Rector 0.18.1Compare Source
This release is accompanied by 2 posts that explains behind the scenes context:
New Features and Changes 🥳
Bugfixes 🐛
get_headers$associative with bool (#4850), Thanks @mvhirsch!Removed 💀
FileProcessorInterface(#4835)SwapFuncCallArgumentsRectoras keeps swaping to infinity, use custom rule instead (#4874)v0.18.0: Released Rector 0.18.0 with Laravel container ⚡️Compare Source
New Features and Changes 🥳
$rectorConfig->import('src/*');with mask?addParameter()(#4801)FileProcessorInterface(#4808)Bugfixes 🐛
v0.17.13: Released Rector 0.17.13Compare Source
New Features and Changes 🥳
Removed 💀
Bugfixes 🐛
v0.17.12Compare Source
v0.17.11: Released Rector 0.17.11Compare Source
New Features and Improvements 🥳
Bugfixes 🐛
Removed 💀
Since Rector 0.15 we declare type stricness and avoid docblock changes, as unreliable and could lead to incorrect assumptions: getrector.com/blog/new-in-rector-015-complete-safe-and-known-type-declarations
Few rules work with unreliable docblocks, and were removed. Instead handle cases yourself with PHPStan help 👍
v0.17.10: Released Rector 0.17.10Compare Source
New Features 🥳
Bugfixes 🐛
v0.17.9: Released Rector 0.17.9Compare Source
Bugfixes 🐛
059d483v0.17.8: Released Rector 0.17.8Compare Source
New Features 🥳
Bugfixes 🐛
Removed 💀
v0.17.7: Released Rector 0.17.7Compare Source
New Features 🥳
Bugfixes 🐛
Removed 💀
v0.17.6: Released Rector 0.17.6Compare Source
In this release, we narrowed rules from PHPUit and Doctrine to their specific version category. We've detected few outdated and never used rules and cleaned them up to make Rector smaller and easier to use 👍
Be use to always use
*SetListconstants over specific rules to use the latest version:New Features 🥳
Bugfixes 🐛
Removed 💀
v0.17.5: Released Rector 0.17.5Compare Source
Removed 💀
Bugfixes 🐛
is_*calls (#4486), Thanks @staabm!v0.17.4: Released Rector 0.17.4Compare Source
Bugfixes 🐛
Removed 💀
v0.17.3: Released Rector 0.17.3Compare Source
In this release we continue preparing for Rector 1.0 release #7854
This includes removing last parent node connections, to lower node tree memory consumption 🥳️🥳️🥳️
New Features 🥳
Bugfixes 🐛
Removed 💀
v0.17.2: Released Rector 0.17.2Compare Source
In this release we continue preparing for Rector 1.0 release #7854
This includes:
New Features 🥳
AddSensitiveParameterAttributeRectorrule (#4342), Thanks @peterfox!Bugfixes 🐛
FunctionLikecontract instead of union of function-like concrete implementations (#4241), Thanks @Wirone!Removed 💀
removeNode()method from AbstractRector (#4225)v0.17.1: Released Rector 0.17.1Compare Source
In this release we continue preparing for Rector 1.0 release #7854
This includes:
removeNode()method withreturn NodeTraverser::REMOVE_NODEdirect constant to make changes happen directly in the Rector ruleNew Features 🥳
Changes
Bugfixes 🐛
Removed 💀
v0.17.0: Released Rector 0.17Compare Source
Preparing for Rector 1.0
In this release, we focus on architecture improvements before reaching Rector 1.0. We want to lower the memory usage and make Rector run faster.
This include removing next/previous nodes - this will most likely not affect you, as Rector rules were upgraded, but if you do you use them, switch to
StmtsAwareInterfaceinsteadWe follow PHPStan 1.6 move from April 2022, where you can learn more: https://phpstan.org/blog/preprocessing-ast-for-custom-rules
To see how to refactor to
StmtsAwareInterface, check these PRs:Add/remove nodes directly 👍
The next improvement focuses on explicit node adding/removal. Thanks to
StmtsAwareInterfacewe can add nodes directly. This makes Rectorrefactor()method contain all the code you need.New Features 🥳
IfIssetToCoalescingRector(#3878)RemoveFinalFromEntityRector(#3727), Thanks @alexndlm!SwapMethodCallArgumentsRector(#3726), Thanks @gaydamakha!CleanupUnneededNullsafeOperatorRector(#3767)ReturnNeverTypeRectorwork with type declaration, add it to PHP 8.1 set (#3852)BoolReturnTypeFromStrictScalarReturnsRector(#3898)Bugfixes 🐛
IssetOnPropertyObjectToPropertyExistsRector(#3876)Removed rules 💀
We've also remove bunch of rules, that were added in early days of Rector for demo purposes. They were not used as of any set for non-reliable cases. PHPStan and coding standards replace some of those.
v0.16.0: Released Rector 0.16.0Compare Source
New Features 🥳
Bugfixes 🐛
Performance Improvements 🚀
--no-diffsis given (#3710), Thanks @staabm!931e6e2)v0.15.25Compare Source
Configuration
📅 Schedule: Branch creation - "after 3am every weekday,every weekend" in timezone Europe/Amsterdam, 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.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Renovate Bot.
⚠️ Artifact update problem
Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.
♻ Renovate will retry this branch, including artifacts, only when one of the following happens:
The artifact failure details are included below:
File name: composer.lock
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.