Skip to content

Conversation

@renovate-runner
Copy link
Contributor

@renovate-runner renovate-runner bot commented Sep 6, 2025

This PR contains the following updates:

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

Release Notes

rectorphp/rector (rector/rector)

v2.1.6: Released Rector 2.1.6

Compare Source

rectorphp/rector-phpunit

  • [code-quality] add with() + callback() support to TypeWillReturnCallableArrowFunctionRector (#​535)
  • [CodeQuality] Handle crash on no @​ depends on AddParamTypeFromDependsRector (#​537)

v2.1.5: Released Rector 2.1.5

Compare Source

New Features 🥳


Bugfixes 🐛

  • [TypeDeclaration] Skip integer index on string on AddArrowFunctionParamArrayWhereDimFetchRector (#​7178)
  • [TypeDeclaration] Skip Valid type from return doc and typed param on AddMethodCallBasedStrictParamTypeRector (#​7172)
  • [Renaming] Keep parentheses on RenameCastRector (#​7153)
  • [CodeQuality] Skip next inside array_filter() on SimplifyEmptyArrayCheckRector (#​7154)
  • Clean up ternary on ColonAfterSwitchCaseRector (#​7158)
  • fix: convert static::* to self::* for all constant access in final classes (#​7159), Thanks @​calebdw!
  • fix: static to self static method call on final class (#​7160), Thanks @​calebdw!
  • fix multi-line error message format (#​7164), Thanks @​FeBe95!
  • [CodeQuality] Skip @​final doc with public property on ConvertStaticToSelfRector (#​7168)
  • [CodeQuality] Skip @​final doc with public class constant on ConvertStaticToSelfRector (#​7170)
  • Ensure native ReflectionClassConstant->isFinal() exists by check real php version (#​7171)
  • Fix RemoveDuplicatedCaseInSwitchRector behavior (#​7173), Thanks @​max-s-lab!
  • replace PHP_EOL with \n when used with symfony console (#​7174), Thanks @​FeBe95!
  • [CodeQuality] Handle parentheses inner if with assign on CombineIfRector (#​7179)
  • [DeadCode] Fix merge comments on RemoveAlwaysTrueIfConditionRector (#​7181)
  • [Naming] Skip rename override method from /vendor/ on RenameParamToMatchTypeRector (#​7182)
  • [Php84] Handle named key argument with flipped position on ArrayKeyExistsNullToEmptyStringRector (#​7186)
  • skip constructor param hook on ReadOnlyPropertyRector (#​7192), Thanks @​tandev!
  • [Php84] Skip value extraction on ForeachToArray* rules (#​7193)
  • [Scope] Handle Scope refreshing on Attribute on print string with NOWDOC (#​7194)
  • [Transform] Fix example config on FuncCallToNewRector (#​7196)
  • [Composer] Make InstalledPackageResolver::resolvedInstalledPackages nullable to verify cached package lists (#​7210)
  • [AutoImport] Do not rename different namespaced function on auto import + RenameFunctionRector (#​7214)
  • Rectify (#​7216)
  • [DeadCode] Skip non-public __clone() method on RemoveEmptyClassMethodRector (#​7187)

Removed and reprecated 💀

  • Throw Deprecatation on StaticToSelfStaticMethodCallOnFinalClassRector and ConvertStaticPrivateConstantToSelfRector (#​7165)
  • [Php85] Remove calls to deprecated no-op functions (#​7128), Thanks @​mttsch!
  • [8.4][DeprecatedAnnotationToDeprecatedAttributeRector] Remove invalid example (#​7202), Thanks @​DanielEScherzer!
  • Remove removed "Rector\Symfony\Set\FOSRestSetList/JMSSetList/SensiolabsSetList" usage (#​7204)



rectorphp/rector-symfony 🎵

  • restore SymfonyInternalSetList to allow relative paths to sets, use internally only (#​837)
  • [code-quality] add filter_var() support to ParameterBagTypedGetMethodCallRector (#​836)
  • [CodeQuality] Skip first class callable on ParameterBagTypedGetMethodCallRector (#​835)
  • [code-quality] Add ParameterBagTypedGetMethodCallRector (#​834)
  • [config] add symfony cache pool support to StringExtensionToConfigBuilderRector (#​832)
  • [doctrine] add mapping type support to StringExtensionToConfigBuilderRector (#​831)
  • [config] Add query/result cache doctrine support in StringExtensionToConfigBuilderRector (#​830)
  • [config] Add monolog and dbal fixes to StringExtensionToConfigBuilderRector (#​829)
  • [SYMFONY 7.4] replace function call routing (#​828), Thanks @​JohJohan

rectorphp/rector-phpunit 🟢

  • [code-quality] Add ScalarArgumentToExpectedParamTypeRector (#​533)
  • [CodeQuality] Fix assertGreater/Less apply on AssertComparisonToSpecificMethodRector (#​532)
  • [CodeQuality] Skip docblock based type on AddReturnTypeToDependedRector (#​530)
  • Remove unused check return with expr as already covered on ReturnAnalyzer (#​529)
  • [code-quality] Add AddReturnTypeToDependedRector (#​528)
  • [code-quality] Add AddParamTypeFromDependsRector (#​525)
  • Fix target method on dataProvider on DataProviderAnnotationToAttributeRector (#​524)
  • [AnnotationToAttribute] Handle already in use on DataProviderAnnotationToAttributeRector (#​523)
  • [CodeQuality] Skip already has return type on TypeWillReturnCallableArrowFunctionRector (#​518)
  • Drop MatchAssertEqualsExpectedTypeRector (#​517)
  • [CodeQuality] Handle crash on native "object" type on TypeWillReturnCallableArrowFunctionRector (#​516)
  • [CodeQuality] Skip return createMock() on TypeWillReturnCallableArrowFunctionRector (#​515)
  • [CodeQuality] Rename MatchAssertSameExpectedTypeRector to MatchAssertEqualsExpectedTypeRector to only apply on assertEquals (#​514)
  • [code-quality] Add MatchAssertSameExpectedTypeRector (#​510)
  • add GetMockBuilderGetMockToCreateMockRector to code quality set (#​509)

rectorphp/rector-downgrade-php

  • [DowngradePhp83] Add DowngradeJsonValidateRector (#​313)
  • [DowngradePhp81] Handle parent is void on DowngradeNeverTypeDeclarationRector (#​311)
  • [DowngradePhp81] Skip check version_compare with if on DowngradeHashAlgorithmXxHashRector (part 3) (#​309)
  • [DowngradePhp81] Skip check version_compare with ternary on DowngradeHashAlgorithmXxHashRector (part 2) (#​308)
  • [DowngradePhp81] Skip check php version with ternary on DowngradeHashAlgorithmXxHashRector (part 1) (#​307)
  • [DowngradePhp81] Add PHP_VERSION_ID < 80100 check on DowngradeSetAccessibleReflectionPropertyRector (#​306)

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 has been generated by Renovate Bot.

@renovate-runner renovate-runner bot added CI 🚧 Dependencies 📦 Pull requests that update a dependency file labels Sep 6, 2025
@boring-cyborg boring-cyborg bot added JSON 👨‍💼 PHP 🐘 Hypertext Pre Processor labels Sep 6, 2025
@github-actions
Copy link

github-actions bot commented Sep 6, 2025

🏰 Composer Production Dependency changes 🏰

Prod Packages Operation Base Target Link
rector/rector Upgraded 2.1.4 2.1.6 Compare
@github-actions github-actions bot added this to the 8.2.0 milestone Sep 6, 2025
@renovate-runner renovate-runner bot force-pushed the renovate/update-packagist-rector-rector-2-1-6 branch from 4fc6f2c to 1020231 Compare September 6, 2025 22:51
@renovate-runner renovate-runner bot force-pushed the renovate/update-packagist-rector-rector-2-1-6 branch from 1020231 to e141eee Compare September 7, 2025 20:53
@WyriHaximus WyriHaximus merged commit 94ddcc1 into master Sep 9, 2025
58 checks passed
@WyriHaximus WyriHaximus deleted the renovate/update-packagist-rector-rector-2-1-6 branch September 9, 2025 09:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CI 🚧 Dependencies 📦 Pull requests that update a dependency file JSON 👨‍💼 PHP 🐘 Hypertext Pre Processor Source 🔮 Tests 🧪

2 participants