[TASK] Update rector/rector to v2.6.2 - #302
Merged
Merged
Conversation
| datasource | package | from | to | | ---------- | ------------- | ----- | ----- | | packagist | rector/rector | 2.6.1 | 2.6.2 |
Collaborator
Coverage Report for CI Build 31985220359Coverage remained the same at 97.619%Details
Uncovered ChangesNo uncovered changes found. Coverage RegressionsNo coverage regressions found. Coverage Stats
💛 - Coveralls |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
This PR contains the following updates:
2.6.1→2.6.2Release Notes
rectorphp/rector (rector/rector)
v2.6.2: Released Rector 2.6.2Compare Source
The 2.6.0 release introduced composer-based sets. This release finishes the job: every extension package now ships a single composer-based set, and the per-version set providers behind the old guessing game are gone.
Each rule inside checks
composer.json/installed.jsonon its own and runs only if the installed package version matches its constraint. NoSymfonySetList::SYMFONY_63, no picking a PHPUnit version by hand. We're working hard to bring Drupal and Laravel community packages to the same system.Run only the PHP rules (#8322)
A new
--phpoption on theprocesscommand runs only rules bound to a minimal PHP version — those implementingMinPhpVersionInterface. Useful to split a PHP upgrade from the rest, without a second config:New features 🥳
--phpoption to run only PHP version rules (#8322)withComposerBased()(#8332), load Doctrine and Twig composer-based sets (#8313)--onlyrule exists but is not registered inrector.php(#8300)New rules 🎉
rector-src
RemoveRedundantTypeCheckRector(#8307)rector-symfony
EnableValidationAttributesRector(#1004)Simple(Pre|Form)AuthenticatorInterfacefromCoretoHttpnamespace (#1031)rector-phpunit
AnyMatcherToNewAnyInvokedCountRectorfor the deprecatedany()matcher (#764)Bugfixes 🐛
withPhpSets()version (#8315) —withPhpSets(php82: true)withsymfony/polyfill-php83installed no longer produces PHP 8.3 codeInlineConstructorDefaultToPropertyRectoron non-final class (#8310) and on a property defined in the parent whenparent::__construct()is called (#8297)SimpleXMLElementonIssetOnPropertyObjectToPropertyExistsRector(#8284)RemoveParentDelegatingConstructorRectoron protected parent constructor (#8309)assert()enforcement that producesNeverTypeonNarrowWideUnionReturnTypeRector(#8282)AssignArrayToStringRectoron a variable re-assigned as string (#8293)ArrayToFirstClassCallableRectorwhen the arg type does not accept aClosure(#8288), drop the Symfony PHP closure check (#8291)Set changes 📈
DeprecatedAnnotationToDeprecatedAttributeRectorfrom the PHP 8.4 set and polyfills (#8326)AddOverrideAttributeToOverriddenMethodsRectorfrom the PHP 8.3 and polyfill sets (#8321)RemoveReadonlyPropertyVisibilityOnReadonlyClassRector(#8289),SimplifyBoolIdenticalTrueRectorandUnwrapSprintfOneArgumentRector(#8285) to the dead-code setPropertyExistsWithoutAssertRectorin the composer-based set (#761)Deprecations 💀
Deprecated rules run without any effect, and print a warning and will be removed in a future major release.
These were deprecated as not part of any set, risky, opinionated or excluded by most users. The goal is to keep Rector valuable and reliable for the every day user.
rector-src
DeprecatedAnnotationToDeprecatedAttributeRectorandConstAndTraitDeprecatedAttributeRector(#8347)AddInterfaceByTraitRector(#8346)RemoveAnnotationRector(#8345)ScalarValueToConstFetchRector(#8344)FuncCallToMethodCallRector(#8343)AddReturnArrayDocblockBasedOnArrayMapRector(#8342)AddAssertArrayFromClassMethodDocblockRector(#8341)AddParamArrayDocblockBasedOnArrayMapRector(#8340)AddReturnDocblockForDimFetchArrayFromAssignsRector(#8338)AddSensitiveParameterAttributeRector(#8337)PropertyHookRector— property hooks are a matter of preference (#8331)JsonThrowOnErrorRector— can cause BC breaks (#8327)CoalesceToTernaryRector— risky (#8324)ChangeNestedIfsToEarlyReturnRector(#8304),ChangeNestedForeachIfsToEarlyContinueRector(#8303),ReturnBinaryOrToEarlyReturnRector(#8302),ChangeOrIfContinueToMultiContinueRector(#8299)DisallowedEmptyRuleFixerRector(#8290)NestedFuncCallsToPipeOperatorRectorandSequentialAssignmentsToPipeOperatorRector(#8286)SwitchNegatedTernaryRector(#8283)cacheClass()— the file-vs-memory cache storage choice moved intoCacheFactory; onlyFileCacheStorageis ever useful to end users (#8311)symfonyRouteandsymfonyValidatorargs inwithAttributesSets()(#8317)ComposerTriggeredSetin favor ofComposerPackageConstraintInterface(#8296)withComposerBased(netteUtils:)argument (#8329)rector-symfony
ActionSuffixRemoverRector(#1022)ControllerMethodInjectionToConstructorRector(#1020)TraitGetByTypeToInjectRector(#1002)RemoveDefaultGetBlockPrefixRector(#1017)rector-doctrine
RemoveEmptyTableAttributeRector(#505)MoveCurrentDateTimeDefaultInEntityToConstructorRector, drop theforce_nullableoption (#504)Removals 💀
nette/utilsset and its singleUtilsJsonStaticCallNamedArgRectorrule (#8329) — the only third-party-library rule left in rector-src, readability onlyNewInInitializerRector(#8328)SymfonySetProvider,PHPUnitSetProvider(#8295) andDoctrineSetProvider(#8298) from the collectorTwigSetProvider(#1015) and the empty Symfony per-version set providers (#1012)PHPUnitSetProvider(#759)DoctrineSetProvider(#501), drop the unusedsymfony/yamldependency (#500)rectorphp/rector-symfony 🎵
AsTwigFilter/AsTwigFunctionrules into a single rule, addgetTests()support (#1027), restore the merged rules as deprecated (#1028)ControllerMethodInjectionToConstructorRector: re-use the parent protected property (#1003), skip event and session params (#1005), use#[Required]autowire()when the parent has a constructor (#1006), skip type-guarded classes and use a unique autowire method name (#1007), re-use an existing#[Required]method (#1008)LoadValidatorMetadataToAttributeRector: skip non-constant constraint args (#1000) and constraints without their own constructor (#1001)AddParamTypeDeclarationto nullable types where the upstream param defaults to null (#1023)GetRequestRector(#1013), move it to the Symfony 2.5 set (#1009)Twig_Tests_EnvironmentTest_Extensionrename (#1016)rectorphp/rector-phpunit 🧪
AddDoesNotPerformAssertionToNonAssertingTestRector: add the attribute directly and skip traits (#765), removeaddToAssertionCount()calls (#763), skip TwigIntegrationTestCasechildren (#762)Configuration
📅 Schedule: (UTC)
* * * * 1-5)🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.