Skip to content

build(deps-dev): Bump rector/rector from 2.5.5 to 2.5.7 in /vendor-bin/rector - #1088

Merged
nickvergessen merged 1 commit into
mainfrom
dependabot/composer/vendor-bin/rector/rector/rector-2.5.7
Jul 25, 2026
Merged

build(deps-dev): Bump rector/rector from 2.5.5 to 2.5.7 in /vendor-bin/rector#1088
nickvergessen merged 1 commit into
mainfrom
dependabot/composer/vendor-bin/rector/rector/rector-2.5.7

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Jul 25, 2026

Copy link
Copy Markdown
Contributor

Bumps rector/rector from 2.5.5 to 2.5.7.

Release notes

Sourced from rector/rector's releases.

Released Rector 2.5.7

This release sharpens the PHPUnit code-quality sets, adds a focused narrow asserts set, deprecates two blurry Symfony web-test rules, and fixes a handful of docblock false-positives in dead-code removal.

New Features 🎉

PHPUnit: PHPUNIT_NARROW_ASSERTS set

A new set focused on narrowing broad asserts to their specific, more descriptive method — e.g. assertTrue(isset($a['b']))assertArrayHasKey('b', $a). ([rector-phpunit #716])

use Rector\PHPUnit\Set\PHPUnitSetList;
return RectorConfig::configure()
->withSets([PHPUnitSetList::PHPUNIT_NARROW_ASSERTS]);

withPreparedSets() gains phpunitNarrowAsserts + phpunitMockToStub

The 2 PHPUnit sets are now toggleable like any other prepared set. (#8178)

return RectorConfig::configure()
    ->withPreparedSets(
        phpunitNarrowAsserts: true,
        phpunitMockToStub: true,
    );

PHPUnit: flip with($this->callback(...)) on void methods to willReturnCallback()

VoidMethodWithCallbackToWillReturnCallbackRector (renamed + refocused) drops the pointless return value and types the closure as void, matching the mocked void method. ([rector-phpunit #724])

 $this->createMock(SomeClass::class)
     ->method('run')
-    ->with($this->callback(function ($arg) {
-        echo $arg;
-
-        return true;
-    }));
+    ->willReturnCallback(function ($arg): void {
+        echo $arg;
+    });

... (truncated)

Commits
  • ba22f8c Rector 2.5.7
  • 1109537 Updated Rector to commit 653ec233fa55057fb11a6c133ed5c8d57dec9ff2
  • e363554 Updated Rector to commit 3c481b689cd746323dfad98782cd7939f28035e4
  • fb62051 Updated Rector to commit 3c481b689cd746323dfad98782cd7939f28035e4
  • 561c81c Updated Rector to commit 51d61737c5fbaed10c5f711bbc8074720452417e
  • 9f3ea3a Updated Rector to commit e713102f40682bc65311d3a50e5490e6acc452f3
  • 78b5c28 Updated Rector to commit 306b852af3e4d0045034a6865bffe311ccdf38c9
  • 4bb232c Updated Rector to commit 0e269a0d17470ec8331efb518efcfd5fa6e7162d
  • eab289b Updated Rector to commit cc1a748e25adb989f2cf42f0329792810d79d216
  • 4ebe4bc Updated Rector to commit ed944a11e6e3a83bac0f9e1f4a413bcc7153fca7
  • Additional commits viewable in compare view

@nickvergessen

Copy link
Copy Markdown
Member

@dependabot recreate

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

---
updated-dependencies:
- dependency-name: rector/rector
  dependency-version: 2.5.7
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot
dependabot Bot force-pushed the dependabot/composer/vendor-bin/rector/rector/rector-2.5.7 branch from f776db7 to 319ab83 Compare July 25, 2026 11:28
@nickvergessen
nickvergessen merged commit 934890e into main Jul 25, 2026
44 checks passed
@nickvergessen
nickvergessen deleted the dependabot/composer/vendor-bin/rector/rector/rector-2.5.7 branch July 25, 2026 11:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant