Skip to content

deps(composer): bump rector/rector from 2.5.2 to 2.5.3 - #80

Merged
MatusBoa merged 2 commits into
mainfrom
dependabot/composer/rector/rector-2.5.3
Jul 6, 2026
Merged

deps(composer): bump rector/rector from 2.5.2 to 2.5.3#80
MatusBoa merged 2 commits into
mainfrom
dependabot/composer/rector/rector-2.5.3

Conversation

@dependabot

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

Copy link
Copy Markdown
Contributor

Bumps rector/rector from 2.5.2 to 2.5.3.

Release notes

Sourced from rector/rector's releases.

Released Rector 2.5.3

New Features 🥳

withTypeGuardedClasses()

Are you an open-source project or package used by others? Do you want to make type changes, but keep BC?

Guard the listed classes and their non-final descendants against method signature changes - e.g. adding a return type or a param type — that would break child classes (#8135)

return RectorConfig::configure()
    ->withTypeGuardedClasses([SomeContract::class]);

New Rules 🎉

NegatedAndsToPositiveOrsRector

(CodeQuality) — simplify a negated "and" to "or" via de Morgan (#8082)

 $a = 5;
 $b = 10;
-$result = !($a > 20 && $b <= 50);
+$result = $a <= 20 || $b > 50;

ExplicitAttributeNamedArgsRector

(CodeQuality) — positional attribute args → named args (#8079), Thanks @​DaveLiddament!

-#[SomeAttribute(SomeClass::class, null, ['home'])]
+#[SomeAttribute(value: SomeClass::class, only: null, except: ['home'])]
 class SomeClass
 {
 }

SwitchTrueToMatchRector

(CodeQuality) — switch (true) of returning cases → match (true), replaces deprecated SwitchTrueToIfRector (#8113)

-        switch (true) {
-            case $value === 0:
-                return 'no';
</tr></table> 

... (truncated)

Commits
  • 3d3577a Rector 2.5.3
  • 0c7c402 Updated Rector to commit 4a1bd1209069775e773ffa3948bccf8207a3fa3b
  • 9ebd51d Updated Rector to commit a3e6be70886edcd0e7dfa2147714018daf27f7e8
  • d7de43f Updated Rector to commit 96ff0040b16e3fc1405af69b98b1edc75d85024d
  • 40c7216 Updated Rector to commit eb3eb215f7594accf81a5c673c267770fbd5a8d0
  • c8fdb53 Updated Rector to commit eb3eb215f7594accf81a5c673c267770fbd5a8d0
  • 3a84931 Updated Rector to commit 62e4045169d30d086acd11261dbb890bb20ce6a9
  • 84ca40f Updated Rector to commit 5f16b59e166d13a0a9f1d6b181b2a3a577ba5c5f
  • 3b63024 Updated Rector to commit f1aefb66f6f6ee92c97bd621f716853a0269a449
  • 21820fe Updated Rector to commit 4cb9b9eea43dc00c1f4f13a2f7fc006fbea0760b
  • 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.2 to 2.5.3.
- [Release notes](https://github.com/rectorphp/rector/releases)
- [Commits](rectorphp/rector@2.5.2...2.5.3)

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

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot @github

dependabot Bot commented on behalf of github Jul 6, 2026

Copy link
Copy Markdown
Contributor Author

Assignees

The following users could not be added as assignees: matusboa. Either the username does not exist or it does not have the correct permissions to be added as an assignee.

Please fix the above issues or remove invalid values from dependabot.yml.

@dependabot
dependabot Bot requested a review from MatusBoa as a code owner July 6, 2026 04:33
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file php Pull requests that update php code labels Jul 6, 2026
@coveralls

coveralls commented Jul 6, 2026

Copy link
Copy Markdown
Collaborator

Coverage Report for CI Build 28780240015

Coverage remained the same at 100.0%

Details

  • Coverage remained the same as the base build.
  • Patch coverage: No coverable lines changed in this PR.
  • No coverage regressions found.

Uncovered Changes

No uncovered changes found.

Coverage Regressions

No coverage regressions found.


Coverage Stats

Coverage Status
Relevant Lines: 34
Covered Lines: 34
Line Coverage: 100.0%
Coverage Strength: 45.29 hits per line

💛 - Coveralls

@MatusBoa
MatusBoa merged commit e3100c6 into main Jul 6, 2026
12 checks passed
@MatusBoa
MatusBoa deleted the dependabot/composer/rector/rector-2.5.3 branch July 6, 2026 09:05
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.

2 participants