Skip to content

build(deps-dev): bump rector/rector from 2.8.5 to 2.9.2 - #4974

Merged
thorsten merged 1 commit into
mainfrom
dependabot/composer/rector/rector-2.9.2
Dec 2, 2026
Merged

thorsten merged 1 commit into
mainfrom
dependabot/composer/rector/rector-2.9.2

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

Bumps rector/rector from 2.8.5 to 2.9.2.

Release notes

Sourced from rector/rector's releases.

Released Rector 2.9.2

Bugfixes 🐛

  • [CodeQuality] Remove NarrowPreviousExceptionCodeArgRector, as it changes getCode() of new exception to 0 (#9062), reported in #9061

    PHP does not inherit the code from the previous exception, so new X('msg', previous: $e) returns 0 from getCode(), not $e->getCode(). The rule was part of the named-args set and code quality level in 2.9.0. If you registered it manually, remove it from your config.

  • [CodeQuality] Restore adding code with named previous: argument in ThrowWithPreviousExceptionRector (#9063)

Released Rector 2.9.0

Leaner rule set and safer rules 🧹

This release removes ~100 rules deprecated in past releases. They already threw on use, were part of no set and were rarely used. If your rector.php still registers one of them, remove it from the config. The goal stays the same: a smaller set of valuable, reliable rules for everyday upgrades.

The rest of the release is about safer changes - more than 30 rules now skip or keep code where the change could alter behavior: side effects, evaluation order, loose comparisons, fall-through cases, nullable types and more.

New Features 🥳

  • [CodeQuality] Add NarrowPreviousExceptionCodeArgRector, part of code-quality and named-args sets (#9052)
 try {
     $someCode = 1;
 } catch (Throwable $throwable) {
-    throw new \RuntimeException('ups', $throwable->getCode(), $throwable);
+    throw new \RuntimeException('ups', previous: $throwable);
 }
  • [Php84] Handle property fetch, static access, array access and invocation on NewMethodCallWithoutParenthesesRector (#9009, #9010) Thanks @​alexndlm
-$message = (new Regex('some-pattern'))->message;
-$constant = (new Request())::METHOD_GET;
-$value = (new ArrayObject($items))['key'];
-$result = (new Invokable())();
+$message = new Regex('some-pattern')->message;
+$constant = new Request()::METHOD_GET;
+$value = new ArrayObject($items)['key'];
+$result = new Invokable()();
  • [Php71] Convert partial list() destruct in ListToArrayDestructRector (#9028)
-list(, $instanceId) = explode(':', $rate->id);
+[, $instanceId] = explode(':', $rate->id);

... (truncated)

Commits
  • 8a06053 Rector 2.9.2
  • 7fd002e Rector 2.9.1
  • 9e513d0 Updated Rector to commit e8210558743a0d5fc3e2fc32c385b78833765822
  • 49290ae Rector 2.9.0
  • c301782 Updated Rector to commit 48448b9cfcdd6b6641b5a660beab18282c2dfd55
  • 1e06ac6 Updated Rector to commit c7ad80904c67bc4be9a49e0218b3a14d0b1b3e9c
  • 1a497c0 Updated Rector to commit 63962116b4d810a19224b2897202f89e58cbad9c
  • 2b369e0 Updated Rector to commit b05ab6eda9b9c080ce9160de596bca9db7b8710a
  • 234853d Updated Rector to commit da60d909ff48c8a756e09b01014d54ca1aba9378
  • 0c594ca Updated Rector to commit 1ae371f9c0a1a05fa1d5a1548252a48cfc50791d
  • Additional commits viewable in compare view

@dependabot dependabot Bot added dependencies Pull requests that update a dependency file PHP Pull requests that update Php code labels Dec 2, 2026
@coderabbitai

coderabbitai Bot commented Dec 2, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Bot user detected.

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

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: c93a8daa-c37d-422b-ad56-087f83e562e0

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

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@dependabot
dependabot Bot force-pushed the dependabot/composer/rector/rector-2.9.2 branch from a266fb7 to 6b98f5f Compare December 2, 2026 05:09
@thorsten

thorsten commented Dec 2, 2026

Copy link
Copy Markdown
Owner

@dependabot rebase

Bumps [rector/rector](https://github.com/rectorphp/rector) from 2.8.5 to 2.9.2.
- [Release notes](https://github.com/rectorphp/rector/releases)
- [Commits](rectorphp/rector@2.8.5...2.9.2)

---
updated-dependencies:
- dependency-name: rector/rector
  dependency-version: 2.9.2
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot
dependabot Bot force-pushed the dependabot/composer/rector/rector-2.9.2 branch from 6b98f5f to 60518fe Compare December 2, 2026 05:38
@thorsten
thorsten merged commit 4dac1a3 into main Dec 2, 2026
19 checks passed
@dependabot
dependabot Bot deleted the dependabot/composer/rector/rector-2.9.2 branch December 2, 2026 05:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file PHP Pull requests that update Php code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant