Skip to content

Bump rector/rector from 2.5.9 to 2.6.1 - #189

Merged
github-actions[bot] merged 1 commit into
mainfrom
dependabot/composer/rector/rector-2.6.1
Aug 10, 2026
Merged

Bump rector/rector from 2.5.9 to 2.6.1#189
github-actions[bot] merged 1 commit into
mainfrom
dependabot/composer/rector/rector-2.6.1

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Aug 10, 2026

Copy link
Copy Markdown
Contributor

Bumps rector/rector from 2.5.9 to 2.6.1.

Release notes

Sourced from rector/rector's releases.

Released Rector 2.6.1

Bugfix 🐛

  • [composer-based] Fix fatal error in the composer-based command on a lazy-initialized property, e.g. PHPStan UnionType::$normalized (#8280)
PHP Fatal error:  Uncaught Error: Typed property PHPStan\Type\UnionType::$normalized
must not be accessed before initialization in src/Console/Command/ComposerBasedCommand.php:205

Composer-based sets keep growing: Twig, nette/utils and the rest of Symfony 📦

Follow-up release to 2.6.0. The composer-based rollout continues - Twig and nette/utils join, and every remaining Symfony rule now declares the package version its target API was added in.

use Rector\Config\RectorConfig;
return RectorConfig::configure()
->withComposerBased(
doctrine: true,
netteUtils: true,
phpunit: true,
symfony: true,
twig: true,
);

The new Twig composer-based set replaces the twig112twig127 → ... → twig30 chain with a single set, where every rule checks the installed twig/twig version:

 final class SomeTwigUse
 {
-    public function run(Twig_Environment $twigEnvironment)
+    public function run(\Twig\Environment $twigEnvironment)
     {
-        return new Twig_SimpleFilter('some_filter', 'strlen');
+        return new \Twig\TwigFilter('some_filter', 'strlen');
     }
 }

Package bonding (composer-based rollout) 📦

  • [NetteUtils] Bind nette/utils rules to the installed package version; nette-utils4.php becomes composer-based.php and is loaded as a single set (#8275)

... (truncated)

Commits
  • b8e68f0 Rector 2.6.1
  • 8d4664e Updated Rector to commit 16be33c1c2364d51038752a299fce01043d42576
  • 834ed36 Updated Rector to commit 4e11a4088c0634076742b71dc9db4cfbeab4a207
  • 77f9eec Updated Rector to commit 4e11a4088c0634076742b71dc9db4cfbeab4a207
  • 55176b4 Updated Rector to commit 4e11a4088c0634076742b71dc9db4cfbeab4a207
  • c529f35 Updated Rector to commit 72f8056755dc28dd1a8ab8f39900259f129ebae8
  • 080ed0f Updated Rector to commit 72f8056755dc28dd1a8ab8f39900259f129ebae8
  • 30c1e33 Updated Rector to commit 72f8056755dc28dd1a8ab8f39900259f129ebae8
  • 8e262e1 Updated Rector to commit 952266b6d64f923f9d6d4390e423e4ab65a953c6
  • 2ca9c01 Updated Rector to commit da48be85d84c065d1f018c9074694980d2351e77
  • 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.5.9 to 2.6.1.
- [Release notes](https://github.com/rectorphp/rector/releases)
- [Commits](rectorphp/rector@2.5.9...2.6.1)

---
updated-dependencies:
- dependency-name: rector/rector
  dependency-version: 2.6.1
  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 Aug 10, 2026
@github-actions
github-actions Bot enabled auto-merge (squash) August 10, 2026 01:06
@github-actions
github-actions Bot merged commit d3eb8b7 into main Aug 10, 2026
7 checks passed
@github-actions
github-actions Bot deleted the dependabot/composer/rector/rector-2.6.1 branch August 10, 2026 01:06
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.

0 participants