Skip to content

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

Merged
stelgenhof merged 1 commit into
devfrom
dependabot/composer/rector/rector-2.9.2
Nov 28, 2026
Merged

stelgenhof merged 1 commit into
devfrom
dependabot/composer/rector/rector-2.9.2

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Nov 28, 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 compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

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 added dependencies Pull requests that update a dependency file php Pull requests that update php code labels Nov 28, 2026
@stelgenhof
stelgenhof merged commit 5d24fd6 into dev Nov 28, 2026
21 checks passed
@dependabot
dependabot Bot deleted the dependabot/composer/rector/rector-2.9.2 branch November 28, 2026 04: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