Skip to content

Update dependency rector/rector to v2.1.5#170

Merged
renovate[bot] merged 1 commit into
mainfrom
renovate/rector-rector-2.x-lockfile
Sep 4, 2025
Merged

Update dependency rector/rector to v2.1.5#170
renovate[bot] merged 1 commit into
mainfrom
renovate/rector-rector-2.x-lockfile

Conversation

@renovate

@renovate renovate Bot commented Sep 4, 2025

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

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

Release Notes

rectorphp/rector (rector/rector)

v2.1.5: Released Rector 2.1.5

Compare Source

Bugfixes 🐛

  • [DX] Pass Class_ stmt on FeatureFlags::treatClassesAsFinal() (#​7149)
  • [Renaming] Keep parentheses on RenameCastRector (#​7153)
  • [CodeQuality] Skip next inside array_filter() on SimplifyEmptyArrayCheckRector (#​7154)
  • [PHP 8.5] Convert @deprecated to #[\Deprecated] on constants (#​7155), Thanks @​DanielEScherzer!
  • Fix code style issues (#​7156), Thanks @​mttsch!
  • 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!
  • Throw Deprecatation on StaticToSelfStaticMethodCallOnFinalClassRector and ConvertStaticPrivateConstantToSelfRector (#​7165)
  • [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)
  • Fix @​see on ArrayKeyExistsNullToEmptyStringRector (#​7185)
  • [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)
  • [Scope] No need to set startLine/endLine when it already set (#​7195)
  • [Transform] Fix example config on FuncCallToNewRector (#​7196)
  • use >= for startLine and endLine check (#​7198)
  • Keep flag fosRest, jms, sensiolabs on RectorConfigBuilder::withAttributesSets() with direct file (#​7205)
  • make use of internal set list (#​7208)
  • [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)

New Features 🥳

  • feat: add NarrowTooWideReturnTypeRector (#​7150), Thanks @​calebdw!
  • [Php85] Add ColonAfterSwitchCaseRector (#​7157)
  • feat: add StaticToSelfStaticPropertyFetchOnFinalClassRector (#​7161), Thanks @​calebdw!
  • feat: Add AddReturnDocblockForScalarArrayFromAssignsRector (#​7151), Thanks @​imliam!
  • Fix code sample in AddArrayFunctionClosureParamTypeRector (#​7163), Thanks @​max-s-lab!
  • [TypeDeclaration] Register AddReturnDocblockForScalarArrayFromAssignsRector to type declaration set (#​7166)
  • [TypeDeclaration] Skip Valid type from return doc and typed param on AddMethodCallBasedStrictParamTypeRector (#​7172)
  • Refactor RemoveDuplicatedCaseInSwitchRector and adding test cases (#​7175), Thanks @​max-s-lab!
  • [TypeDeclaration] Skip param already typed on AddMethodCallBasedStrictParamTypeRector (#​7176)
  • [TypeDeclaration] Clean up type based on doc check on AddMethodCallBasedStrictParamTypeRector (#​7177)
  • [TypeDeclaration] Skip integer index on string on AddArrowFunctionParamArrayWhereDimFetchRector (#​7178)
  • [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)
  • Improve assert rule (#​7207)
  • [php 8.3] Add json_validate rule. (#​7213), Thanks @​arshidkv12!
  • Add MbStrContainsRector (#​7199), Thanks @​arshidkv12!
  • make assert rule configurable (#​7215)
  • [PHP 8.5] Rename constant FILTER_DEFAULT to FILTER_UNSAFE_RAW (#​7209), Thanks @​ddevsr!

Removed 💀

  • [Php85] Remove calls to deprecated no-op functions (#​7128), Thanks @​mttsch!
  • [Scoper] Remove PHP_VERSION_ID < 70400 check on scoper.php (#​7162)
  • Remove symfony/polyfill-* from replace config (#​7167)
  • [DeadCode] Skip non-public __clone() method on RemoveEmptyClassMethodRector (#​7187)
  • [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

  • [CodeQuality] Use getNativeMethod on MethodParametersAndReturnTypesResolver (#​534)
  • [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)
  • Fix example of return type on AddParamTypeFromDependsRector (#​527)
  • add attribute (#​526)
  • [code-quality] Add AddParamTypeFromDependsRector (#​525)
  • Fix target method on dataProvider on DataProviderAnnotationToAttributeRector (#​524)
  • [AnnotationToAttribute] Handle already in use on DataProviderAnnotationToAttributeRector (#​523)
  • [CodeQuality] Skip assertEquals() on integer to numeric string on MatchAssertSameExpectedTypeRector (#​522)
  • [Alternative 1] Don't change to assertSame() on numeric string on AssertEqualsToSameRector (#​520)
  • Revert rule removal of MatchAssertSameExpectedTypeRector (#​519)
  • [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)
  • Use Int_ over deprecated LNumber (#​513)
  • [CodeQuality] Skip docblock base type on 2nd arg on MatchAssertSameExpectedTypeRector (#​512)
  • [CodeQuality] Skip first class callable and argument less on MatchAssertSameExpectedTypeRector (#​511)
  • [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)
  • Clean up todo comment (#​310)
  • [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: 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 enabled auto-merge (squash) September 4, 2025 17:02
@coderabbitai

coderabbitai Bot commented Sep 4, 2025

Copy link
Copy Markdown

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.


🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.

Support

Need help? Join our Discord community for assistance with any issues or questions.

CodeRabbit Commands (Invoked using PR/Issue comments)

Type @coderabbitai help to get the list of available commands.

Other keywords and placeholders

  • Add @coderabbitai ignore or @coderabbit ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Status, Documentation and Community

  • Visit our Status Page to check the current availability of CodeRabbit.
  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@renovate renovate Bot merged commit af53c7e into main Sep 4, 2025
11 checks passed
@renovate renovate Bot deleted the renovate/rector-rector-2.x-lockfile branch September 4, 2025 17:04
@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 95.17%. Comparing base (469d365) to head (5facd24).
⚠️ Report is 1 commits behind head on main.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #170   +/-   ##
=======================================
  Coverage   95.17%   95.17%           
=======================================
  Files           5        5           
  Lines         394      394           
=======================================
  Hits          375      375           
  Misses         19       19           

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

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