Skip to content

chore(deps): update dependency rector/rector to v2.5.9 - #489

Merged
renovate[bot] merged 1 commit into
mainfrom
renovate/rector-rector-2.x
Aug 2, 2026
Merged

chore(deps): update dependency rector/rector to v2.5.9#489
renovate[bot] merged 1 commit into
mainfrom
renovate/rector-rector-2.x

Conversation

@renovate

@renovate renovate Bot commented Aug 1, 2026

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
rector/rector (source) 2.5.72.5.9 age confidence

Warning

Some dependencies could not be looked up. Check the Dependency Dashboard for more information.


Release Notes

rectorphp/rector (rector/rector)

v2.5.9: Released Rector 2.5.9

Compare Source

Bugfixes 🐛

  • [DeadCode] Remove unreachable class-like checks in Class_-only rules (#​8217)
  • [CodingStyle] Use native php-parser node API over class reflection (#​8218)
  • [Php80] Remove AstResolver usage on AddParamBasedOnParentClassMethodRector (#​8196)
  • Wire RichParser node visitors via DI factory instead of private property hack (#​8215)
  • [Php80] Skip promoting a property the parent declares without a native type in ClassPropertyAssignToConstructorPromotionRector (#​8232)
  • [DeadCode] Keep empty __construct() in anonymous class that extends parent on RemoveEmptyClassMethodRector (#​8219)
  • [DeadCode] Skip negative zero on RemoveDeadZeroAndOneOperationRector (#​8213)
  • [DeadCode] Skip protected property on non-final class on RemoveDefaultValueFromAssignedPropertyRector (#​8214)
  • [DeadCode] Skip array dim fetch assign on RemoveDefaultValueFromAssignedPropertyRector (#​8212)
  • [DeadCode] Skip if/else in loop on RemoveDefaultValueFromAssignedPropertyRector (#​8211)
  • [DeadCode] Skip early return in constructor on RemoveDefaultValueFromAssignedPropertyRector (#​8209)

Set changes 🗑️

NullToStrictStringFuncCallArgRector out of the PHP 8.1 set (#​8234)

The rule and all its fixtures stay, so it can still be opted into:

->withRules([NullToStrictStringFuncCallArgRector::class])

Deprecations 💀

TypeDeclarationDocblocks: 3 data provider docblock rules (#​8235)

Data provider docblock typing is not relevant to code quality — it increases maintenance cost and decreases readability of the test class.

Deprecated rules:

  • AddReturnArrayDocblockFromDataProviderParamRector
  • AddReturnDocblockDataProviderRector
  • AddParamArrayDocblockFromDataProviderRector

rectorphp/rector-symfony 🎵

  • [Symfony72] Match push() to its own RequestStack variable in PushRequestToRequestStackConstructorRector (#​971)
  • [Symfony44] Skip custom isGranted() service calls in controllers in AuthorizationCheckerIsGrantedExtractorRector (#​973)
  • [Symfony42] Update Cookie fixture after NewToStaticCallRector config removal (#​974)
  • Drop rector/type-perfect, its rules ship in tomasvotruba/type-coverage 2.3 now (#​972)
  • Bump dev dependencies, PHPUnit 13 (#​976)
  • [deps] Bump symfony/config to ^8.1 (#​977)
Deprecated: SimplifyFormRenderingRector (#​975)

The rule removed the explicit ->createView() call when a form was passed to render():

Symfony supports passing the FormInterface directly, but the shorthand is ambiguous and breaks dynamic forms: forms modified in PRE_SET_DATA/POST_SUBMIT listeners and submitted over AJAX end up with a 422 response and no clear error. Keeping the explicit ->createView() call is the reliable form. See symfony/symfony#50542.


rectorphp/rector-phpunit 🧪

  • [PHPUnit 13] Fix class in expectExceptionMessage() rename to TestCase (#​735)

rectorphp/rector-downgrade-php ⬇️

  • [DowngradePhp81] Reference MHASH_* constants by name in DowngradeHashAlgorithmXxHashRector to fix PHP 8.5 deprecation (#​386)

v2.5.8: Released Rector 2.5.8

Compare Source

New Features 🥳

  • [dx] Add "if" set with if/else/ternary rules (#​8199)
  • [DeadCode] Add RemoveDeadInstanceOfAssertRector (#​8202)
  • [DeadCode] Add RemoveDoubleSelfAssignRector (#​8203)
  • [DeadCode] Add RemoveParentDelegatingClassMethodRector (#​8204)
  • [DeadCode] Add RemoveDefaultValueFromAssignedPropertyRector (#​8207)
  • [TypeDeclaration] Fix incomplete type on yield variable + yield from in AddParamTypeBasedOnPHPUnitDataProviderRector (#​8206)

Bugfixes 🐛

  • Fix LogicalToBooleanRector: parenthesize assignments nested under unary/binary operators (#​8184)
  • [TypeDeclaration] Skip trait methods on ParamTypeByMethodCallType rules (#​8189)
  • [Php80] Skip promotion when property type is wider than constructor param on ClassPropertyAssignToConstructorPromotionRector (#​8170), Thanks @​ximki-vinki!
  • [Php85] Skip outer spread on NestedFuncCallsToPipeOperatorRector (#​8191)
  • [DeadCode] Fix crash on float version arg in ConditionResolver (#​8192)
  • Make NestedFuncCallsToPipeOperatorRector minimum depth configurable (#​8193)
  • Fix codeception data provider detection (#​8194), Thanks @​d-mitrofanov-v!
  • Make PHPStan DI-Container available in bootstrap files (#​8190), Thanks @​staabm!
  • [Privatization] Skip Symfony Command protected static property in PrivatizeFinalClassPropertyRector (#​8201)
  • Bump to PHPStan ^2.2.6 and Fix its Container compatibility in RichParser (#​8208)

Removed 💀

  • skip @​ return this on RemoveReturnTagIncompatibleWithNativeTypeRector on Traits (#​8185)
  • [DeadCode] Skip string scalar sub type on RemoveReturnTagIncompatibleWithNativeTypeRector (#​8186)

rectorphp/rector-symfony 🎵

  • [Symfony73] Remove empty configure() method in CommandHelpToAttributeRector (#​969)
  • [Symfony73] Keep AbstractExtension when Twig extension overrides a built-in function/filter (#​968)
  • [Symfony73] Wrap scalar groups option in array in ConstraintOptionsToNamedArgumentsRector (#​967)
  • [Symfony61] Remove empty configure() method even with empty body (#​966)
  • [Symfony61] Remove now empty configure() method in CommandConfigureToAttributeRector (#​965)
  • [CodeQuality] Respect typeGuardedClasses and skip closure-only returns in ResponseReturnTypeControllerActionRector (#​964)
  • [Symfony44] Return 1 instead of (int) false in ConsoleExecuteReturnIntRector (#​963)
  • [CodeQuality] Add union and method call return type support to ResponseReturnTypeControllerActionRector (#​961)
  • [Twig30] Add new set for Twig 30 (#​960), Thanks @​MrYamous

rectorphp/rector-doctrine 🟠


rectorphp/rector-phpunit 🟢

  • [PHPUnit 13] Add PHPUnit 13 config set (#​733)
  • [CodeQuality] Skip super global variables on AssertIssetToSpecificMethodRector (#​732)
  • [CodeQuality] Skip anonymous classes in AssertClassToThisAssertRector (#​729)
  • [CodeQuality] Move AssertClassToThisAssertRector hook from Class_ to ClassMethod (#​728)
  • AssertEqualsToSameRector: skip arrays whose actual value key order is not provably identical (#​727)

Configuration

📅 Schedule: (UTC)

  • Branch creation
    • Only on Sunday and Saturday (* * * * 0,6)
  • Automerge
    • At any time (no schedule defined)

🚦 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.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate
renovate Bot force-pushed the renovate/rector-rector-2.x branch from a657043 to c5794f1 Compare August 1, 2026 21:10
@renovate
renovate Bot force-pushed the renovate/rector-rector-2.x branch from c5794f1 to 701ad6d Compare August 2, 2026 01:00
@github-actions

github-actions Bot commented Aug 2, 2026

Copy link
Copy Markdown

Code Coverage

Package Line Rate Complexity Health
Command/AliasAddCommand.php 93% 12
Command/DKIMDisableCommand.php 96% 6
Command/DKIMSetupCommand.php 95% 16
Command/DomainAddCommand.php 94% 6
Command/FetchmailAccountAddCommand.php 93% 9
Command/InitSetupCommand.php 100% 13
Command/RedisSyncCommand.php 90% 4
Command/SystemCheckCommand.php 94% 24
Command/Trait/ConnectionCheckTrait.php 73% 3
Command/UserAddCommand.php 80% 11
Command/VersionCheckCommand.php 100% 13
Controller/Admin/AliasCrudController.php 79% 11
Controller/Admin/DKIMCrudController.php 100% 6
Controller/Admin/DashboardController.php 97% 10
Controller/Admin/DnsWizardAction.php 94% 7
Controller/Admin/DomainCrudController.php 100% 5
Controller/Admin/Observability/DovecotStatsController.php 100% 22
Controller/Admin/Observability/RspamdStatsController.php 98% 11
Controller/Admin/UserCrudController.php 81% 18
Controller/Autoconfig/AutoconfigAction.php 100% 4
Controller/Autoconfig/AutodiscoverAction.php 100% 4
Controller/Security/LoginAction.php 100% 3
Controller/Security/LogoutAction.php 100% 1
Controller/User/ChangePasswordAction.php 96% 6
Controller/User/FetchmailAccountController.php 70% 16
Controller/User/MobileConfigAction.php 67% 4
DependencyInjection/Compiler/AppSecretGeneratorCompilerPass.php 100% 7
Entity/Alias.php 100% 9
Entity/DkimInfoTrait.php 100% 6
Entity/Domain.php 100% 13
Entity/FetchmailAccount.php 100% 17
Entity/User.php 88% 30
Exception/DKIM/DomainKeyNotFoundException.php 0% 0
Exception/DomainNotFoundException.php 100% 1
Exception/Dovecot/DoveadmAuthenticationException.php 0% 0
Exception/Dovecot/DoveadmConnectionException.php 0% 0
Exception/Dovecot/DoveadmException.php 0% 0
Exception/Dovecot/DoveadmResponseException.php 0% 0
Factory/UserFactory.php 100% 5
Form/Type/ChangePasswordType.php 100% 2
Form/Type/OAuthRegisterType.php 100% 2
Kernel.php 0% 1
Repository/AliasRepository.php 100% 1
Repository/DomainRepository.php 100% 1
Repository/FetchmailAccountRepository.php 100% 1
Repository/UserRepository.php 85% 4
Service/ApplicationVersionService.php 100% 8
Service/ConnectionCheckService.php 100% 28
Service/DKIM/Config/Manager.php 100% 2
Service/DKIM/Config/MapGenerator.php 100% 7
Service/DKIM/DKIMStatus.php 100% 5
Service/DKIM/DKIMStatusService.php 100% 7
Service/DKIM/DomainKeyReaderService.php 100% 4
Service/DKIM/FormatterService.php 100% 1
Service/DKIM/KeyGenerationService.php 100% 3
Service/DKIM/KeyPair.php 100% 3
Service/DKIM/RuntimeDataLoader.php 100% 3
Service/DnsWizard/Check/ARecordCheck.php 100% 10
Service/DnsWizard/Check/AaaaRecordCheck.php 100% 10
Service/DnsWizard/Check/AutodiscoveryRecordCheck.php 100% 28
Service/DnsWizard/Check/DkimRecordCheck.php 100% 8
Service/DnsWizard/Check/DmarcRecordCheck.php 100% 10
Service/DnsWizard/Check/DnsCheckInterface.php 0% 0
Service/DnsWizard/Check/MxRecordCheck.php 100% 10
Service/DnsWizard/Check/PtrRecordCheck.php 100% 8
Service/DnsWizard/Check/SpfRecordCheck.php 100% 10
Service/DnsWizard/DnsLookupInterface.php 0% 0
Service/DnsWizard/DnsWizardRow.php 100% 1
Service/DnsWizard/DnsWizardStatus.php 0% 0
Service/DnsWizard/DnsWizardValidator.php 100% 6
Service/DnsWizard/ExpectedHostIps.php 100% 2
Service/DnsWizard/HostIpResolver.php 98% 17
Service/DnsWizard/NativeDnsLookup.php 70% 44
Service/DnsWizard/Scopes.php 0% 1
Service/Dovecot/DTO/DoveadmHealthDto.php 100% 7
Service/Dovecot/DTO/HealthStatus.php 0% 0
Service/Dovecot/DTO/RateSeriesDto.php 100% 9
Service/Dovecot/DTO/StatsDumpDto.php 67% 9
Service/Dovecot/DoveadmHttpClient.php 81% 76
Service/Dovecot/DovecotChartFactory.php 99% 9
Service/Dovecot/DovecotRateCalculator.php 100% 21
Service/Dovecot/DovecotStatsSampler.php 97% 17
Service/FetchmailAccount/AccountData.php 100% 1
Service/FetchmailAccount/AccountWriter.php 75% 4
Service/FetchmailAccount/RedisKeys.php 75% 4
Service/FetchmailAccount/RuntimeData.php 0% 0
Service/FetchmailAccount/RuntimeDataLoader.php 100% 4
Service/GitHubTagService.php 100% 8
Service/MobileConfig/MobileConfigService.php 89% 14
Service/Rspamd/DTO/ActionDistributionDto.php 91% 9
Service/Rspamd/DTO/ActionThresholdDto.php 100% 1
Service/Rspamd/DTO/HealthDto.php 100% 7
Service/Rspamd/DTO/HistoryRowDto.php 100% 1
Service/Rspamd/DTO/KpiValueDto.php 14% 7
Service/Rspamd/DTO/RspamdSummaryDto.php 100% 1
Service/Rspamd/DTO/SymbolCounterDto.php 100% 1
Service/Rspamd/DTO/TimeSeriesDto.php 100% 5
Service/Rspamd/RspamdChartFactory.php 96% 24
Service/Rspamd/RspamdClientException.php 100% 5
Service/Rspamd/RspamdConstants.php 0% 1
Service/Rspamd/RspamdControllerClient.php 94% 33
Service/Rspamd/RspamdStatsService.php 87% 117
Service/Security/Roles.php 0% 1
Service/Security/User/OAuth/AccountConnector.php 100% 3
Service/Security/User/OAuth/DenyRegistrationSubscriber.php 100% 5
Service/Security/User/OAuth/RegistrationFormHandler.php 100% 6
Service/Security/User/OAuth/UserProvider.php 100% 18
Service/Security/Voter/DomainAdminVoter.php 100% 10
Service/Security/Voter/FetchmailAccountVoter.php 100% 8
Service/UserChangeListener.php 100% 5
Subscriber/DKIM/ConfigSyncSubscriber.php 100% 5
Subscriber/DKIM/CreatePrivateKeyOnActivationSubscriber.php 92% 8
Twig/VersionExtension.php 100% 9
Validator/DomainName.php 100% 1
Validator/DomainNameValidator.php 74% 12
Summary 92% (2842 / 3078) 1067

Minimum allowed line rate is 60%

@renovate
renovate Bot merged commit c57df64 into main Aug 2, 2026
4 checks passed
@renovate
renovate Bot deleted the renovate/rector-rector-2.x branch August 2, 2026 06:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants