Skip to content

Conversation

@renovate
Copy link

@renovate renovate bot commented Aug 13, 2025

This PR contains the following updates:

Package Change Age Confidence
rector/rector (source) 2.1.2 -> 2.1.4 age confidence

Release Notes

rectorphp/rector (rector/rector)

v2.1.4: Released Rector 2.1.4

Compare Source

Bugfixes 🐛

v2.1.3: Released: Rector 2.1.3

Compare Source

New Features 🥳

  • Add ClosureFromCallableToFirstClassCallableRector rule (#​7071), Thanks @​devnix!
  • [Php81] added RemoveReflectionSetAccessibleCallsRector (#​7085), Thanks @​NickSdot!
  • [type-declaration] Add AddReturnTypeFromTryCatchTypeRector (#​7099)
  • Add check phpstan if phpstan is running on preload.php (#​7040)
  • [type-coverage] Add support for same returned object in ReturnTypeFromReturnNewRector (#​7096)
  • feat: add support for set, isset, and unset operations in ArrayDimFetchToMethodCallRector (#​7095), Thanks @​calebdw!
  • [TypeDeclaration] Skip try catch finally different type on AddReturnTypeFromTryCatchTypeRector (#​7101)
  • [type-declaration] Add AddArrayFilterClosureParamTypeRector (#​7111)
  • [type-coverage] Improve AddArrowFunctionParamArrayWhereDimFetchRector to handle multiple functions (#​7112)
  • add list<...> support to AddArrayFunctionClosureParamTypeRector (#​7116)
  • feat: add RemoveReadonlyPropertyVisibilityOnReadonlyClassRector (#​7115), Thanks @​calebdw!
  • feat: add laravel to RectorConfigBuilder::withComposerBased (#​7110), Thanks @​calebdw!
  • [Renaming] Add RenameCastRector (#​7117), Thanks @​mttsch!
  • [type-declarations] Add TypedPropertyFromDocblockSetUpDefinedRector (#​7135)
PHP 8.5 🚀

Bugfixes 🐛

  • [TypeDeclaration] Handle crash on direct callable without params on AddArrayFunctionClosureParamTypeRector (#​7131)
  • [TypeDeclaration] Skip ArrayAccess as array item type on AddArrowFunctionParamArrayWhereDimFetchRector (#​7113)
  • [Renaming] Allow rename attribute on Param on RenameAttributeRector (#​7072)
  • [CodeQuality] Mirror comment on InlineConstructorDefaultToPropertyRector (#​7074)
  • [CodeQuality] Move logic directly for merge comments on InlineConstructorDefaultToPropertyRector (#​7075)
  • [CodingStyle] Fix variable in the middle on WrapEncapsedVariableInCurlyBracesRector (#​7076)
  • [CodeQuality] Skip Never type by @​return docblock on ExplicitReturnNullRector (#​7078)
  • [Naming] Skip var used after switch on RenameForeachValueVariableToMatchExprVariableRector (#​7080)
  • [Naming] Use ScopeFetcher::fetch() near its usage on RenameForeachValueVariableToMatchExprVariableRector (#​7081)
  • [AutoImport] Handle auto import short name on global namespace (#​7086)
  • [TypeDeclaration] Skip ArrayAccess on StrictArrayParamDimFetchRector (#​7087)
  • [Php81] Handle on ternary on NullToStrictStringFuncCallArgRector (#​7091)
  • fix: sorting of named parameters in variadic functions (#​7090), Thanks @​calebdw!
  • fix: skip AssignOps in ArrayDimFetchToMethodCallRector (#​7100), Thanks @​calebdw!
  • Skip PhpdocTypesFixer of PhpCsFixer on Scalar node (#​7103)
  • fix: skip variable assignments in get_defined_vars (#​7106), Thanks @​calebdw!
  • [Php80] Skip not match property hook type with parameter type on ClassPropertyAssignToConstructorPromotionRector (#​7109)
  • [DeadCode] Early check GenericTypeNode is not dead code on DeadVar/ReturnParam Analyzer (#​7118)
  • [Config] Allow php85: true on withPhpSets() (#​7130)
  • [Php84] Allow on return on ForeachToArrayAnyRector (#​7119), Thanks @​Orest-Divintari!
  • [TypeDeclaration] Keep Generic type docblock on TypedPropertyFromDocblockSetUpDefinedRector (#​7140)
  • fix: allow more nodes to be passed to AttributeGroupNewLiner (#​7145), Thanks @​calebdw!
  • [DeadCode] Skip used in compact() on RemoveUnusedForeachKeyRector (#​7073)
  • [DeadCode] Handle assign on Arg on RemoveUnusedPrivatePropertyRector (#​7092)
  • [DeadCode] Skip Templated type on param and return on RemoveUselessParamTagRector and RemoveUselessReturnTagRector under IntersectionType (#​7093)
  • [DeadCode] Skip mixed fallback null on trait on RemoveAlwaysTrueIfConditionRector (#​7098)
  • [DeadCode] Skip with first class callable on RemoveUnusedPrivateMethodParameterRector (#​7104)
  • [DeadCode] Skip with get_defined_vars() on RemoveUnusedPrivateMethodParameterRector ([#​7105][https://github.com/rectorphp/rector-src/pull/7105](https://redirect.github.com/rectorphp/rector-src/pull/7105)5


rectorphp/rector-symfony 🎵

  • [CodeQuality] Skip got duplicated method after suffix removed on ActionSuffixRemoverRector (#​827)
  • Keep AsCommand in InvokableCommandInputAttributeRector documentation (#​824), Thanks @​bobvandevijver



rectorphp/rector-doctrine 🟠

  • [CodeQuality] Keep param/return doc with description on TypeNullableEntityFromDocblockRector (#​460)
  • [code-quality] Add TypeNullableEntityFromDocblockRector to add safe types to doctrine entities (#​459)



rectorphp/rector-phpunit 🟢

  • Cover array shape iterator for YieldDataProviderRector+RemoveUselessReturnTagRector. (#​505), Thanks @​biozshock

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

@codecov
Copy link

codecov bot commented Aug 13, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (c98e35b) to head (86135ab).
⚠️ Report is 2 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff             @@
##              master      #205   +/-   ##
===========================================
  Coverage     100.00%   100.00%           
  Complexity        72        72           
===========================================
  Files              7         7           
  Lines            210       210           
===========================================
  Hits             210       210           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@renovate renovate bot force-pushed the renovate/rector-rector-2.x-lockfile branch from e4cfae5 to 86135ab Compare August 15, 2025 16:31
@renovate renovate bot changed the title chore(deps): update dependency rector/rector to v2.1.3 chore(deps): update dependency rector/rector to v2.1.4 Aug 15, 2025
@ericsizemore ericsizemore merged commit 01cc6c4 into master Aug 19, 2025
11 checks passed
@renovate renovate bot deleted the renovate/rector-rector-2.x-lockfile branch August 19, 2025 00:21
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.

1 participant