Skip to content
This repository has been archived by the owner on Nov 1, 2024. It is now read-only.

[TASK] Update rector/rector to v0.17.6 #112

Merged
merged 1 commit into from
Jul 15, 2023

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Jul 14, 2023

Mend Renovate

This PR contains the following updates:

Package Type Update Change
rector/rector (source) require-dev patch 0.17.5 -> 0.17.6

Release Notes

rectorphp/rector (rector/rector)

v0.17.6: Released Rector 0.17.6

Compare Source

In this release, we narrowed rules from PHPUit and Doctrine to their specific version category. We've detected few outdated and never used rules and cleaned them up to make Rector smaller and easier to use 👍

Be use to always use *SetList constants over specific rules to use the latest version:

use Rector\Config\RectorConfig;

return static function (RectorConfig $rectorConfig): void {
    $rectorConfig->sets([
        \Rector\PHPUnit\Set\PHPUnitLevelSetList::UP_TO_PHPUNIT_100,
    ]);
};

New Features 🥳

  • Add PHPUnit to sets (#​4495)
  • [CI] Add PHPUnit 10 to check rules and sets groups (#​4500)
  • [CI] Add doctrine rules in set check (#​4505)

Bugfixes 🐛

  • [Performance] Only set Attribute on context inside ArrayDimFetch and ArrayItem on specific node used (#​4493)
  • [Php52] Use instanceof check instead of compare object $newStmt === $caseStmt on ContinueToBreakInSwitchRector (#​4494)
  • Exclude the full docs folder from archives (#​4497), Thanks @​stof!
  • Cleanup RecastingRemovalRector tests (#​4498)
  • Move Rector order test to PHPUnit, as uses its rules (#​4499)
  • let phpunit handle its own empty method rule (#​4501), Thanks @​staabm!
  • Micro optimizations: cheap checks first (#​4510), Thanks @​staabm!
  • Skip coalsce assign in RemoveUnusedPrivatePropertyRector (#​4491)
  • [DeadCode] Skip append += assignment on RemoveUnusedPrivatePropertyRector (#​4506)
  • [AstResolver][Performance] Remove unnecessary double File read on AstResolver::parseFileNameToDecoratedNodes() (#​4508)

Removed 💀

  • [NodeTypeResolver] Remove unused AttributeKey::INSIDE_ARRAY_ITEM on ContextNodeVisitor (#​4496)
  • [NodeTypeResolver] Remove AttributeKey::IS_RETURN_EXPR from ContextNodeVisitor (#​4502)
  • [NodeTypeResolver] Remove AttributeKey::IS_ISSET_VAR from ContextNodeVisitor (#​4503)
  • [NodeTypeResolver] Remove nestedChainMethodCallLimit() for deep method call counter check (#​4504)

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 has been generated by Mend Renovate. View repository job log here.

| datasource | package       | from   | to     |
| ---------- | ------------- | ------ | ------ |
| packagist  | rector/rector | 0.17.5 | 0.17.6 |
@mteu mteu merged commit 11789c2 into main Jul 15, 2023
@renovate renovate bot deleted the renovate/rector-rector-0.17.x-lockfile branch July 15, 2023 05:28
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant