Skip to content

[Conductor] Update rector/rector to 2.1.6#28

Merged
pscheit merged 1 commit intomainfrom
conductor-rector-rector-49394
Sep 9, 2025
Merged

[Conductor] Update rector/rector to 2.1.6#28
pscheit merged 1 commit intomainfrom
conductor-rector-rector-49394

Conversation

@private-packagist
Copy link
Copy Markdown
Contributor

This PR was automatically generated by Conductor.

The PR contains the changes generated by running the following command:

composer update rector/rector:2.1.6 --with-all-dependencies --minimal-changes

Changelog

rector/rector (Source: GitHub Releases))

2.1.6

rectorphp/rector-phpunit

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

2.1.5

New Features 🥳

  • feat: add NarrowTooWideReturnTypeRector (#7150), Thanks @​calebdw!
  • [Php85] Add ColonAfterSwitchCaseRector (#7157)
  • feat: add StaticToSelfStaticPropertyFetchOnFinalClassRector (#7161), Thanks @​calebdw!
  • feat: Add AddReturnDocblockForScalarArrayFromAssignsRector (#7151), Thanks @​imliam!
  • [TypeDeclaration] Register AddReturnDocblockForScalarArrayFromAssignsRector to type declaration set (#7166)
  • Refactor RemoveDuplicatedCaseInSwitchRector and adding test cases (#7175), Thanks @​max-s-lab!
  • [Php85] Add ArrayKeyExistsNullToEmptyStringRector (#7183), Thanks @​arshidkv12!
  • [Php85] Add fixture to skip integer key on ArrayKeyExistsNullToEmptyStringRector (#7189)
  • [Php85] Add ChrArgModuloRector (#7190), Thanks @​arshidkv12!
  • [assert] Kick of experimental rule, AddAssertArrayFromClassMethodDocblockRector (#7206)
  • [php 8.3] Add json_validate rule. (#7213), Thanks @​arshidkv12!
  • Add MbStrContainsRector (#7199), Thanks @​arshidkv12!
  • [PHP 8.5] Rename constant FILTER_DEFAULT to FILTER_UNSAFE_RAW (#7209), Thanks @​ddevsr!
  • [PHP 8.5] Convert @​deprecated to #[\Deprecated] on constants (#7155), Thanks @​DanielEScherzer!

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)

Task options

If you close the PR, the task will be skipped and Conductor will schedule the next task. Clicking the "Skip" button in the UI has the same effect. Conductor won't attempt to update the dependency to this exact version again but it will schedule updates to newer versions.


Powered by Private Packagist

Conductor executed the following commands:
composer update rector/rector:2.1.6 --with-all-dependencies --minimal-changes
@private-packagist
Copy link
Copy Markdown
Contributor Author

composer.lock

Dev Package changes

Package Operation From To About
rector/rector upgrade 2.1.4 2.1.6 diff

Settings · Docs · Powered by Private Packagist

@pscheit pscheit merged commit fd1b505 into main Sep 9, 2025
1 check passed
@private-packagist private-packagist Bot deleted the conductor-rector-rector-49394 branch September 9, 2025 10:02
@packagist-psc-dev
Copy link
Copy Markdown

composer.lock

Dev Package changes

Package Operation From To About
rector/rector upgrade 2.1.4 2.1.6 diff

Settings · Docs · Powered by Private Packagist

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