Skip to content

fix: Add Stringable to classes implementing __toString()#402

Merged
acoulton merged 1 commit intoBehat:masterfrom
acoulton:maint-php-cs-fixer-updates
Dec 2, 2025
Merged

fix: Add Stringable to classes implementing __toString()#402
acoulton merged 1 commit intoBehat:masterfrom
acoulton:maint-php-cs-fixer-updates

Conversation

@acoulton
Copy link
Contributor

@acoulton acoulton commented Dec 2, 2025

php-cs-fixer 3.91.0 added a new rule to the @Symfony set that adds the Stringable interface to classes implementing a __toString() method.

This commit applies that rule to our codebase to resolve the current build failure.

php-cs-fixer 3.91.0 added a new rule to the `@Symfony` set that adds
the `Stringable` interface to classes implementing a `__toString()`
method.

This commit applies that rule to our codebase to resolve the current
build failure.
@codecov
Copy link

codecov bot commented Dec 2, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 95.66%. Comparing base (d9957c7) to head (b9af079).
⚠️ Report is 2 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff            @@
##             master     #402   +/-   ##
=========================================
  Coverage     95.66%   95.66%           
  Complexity      682      682           
=========================================
  Files            45       45           
  Lines          2009     2009           
=========================================
  Hits           1922     1922           
  Misses           87       87           
Flag Coverage Δ
php8.1 95.66% <100.00%> (?)
php8.1--with=symfony/yaml:^5.4 95.66% <100.00%> (ø)
php8.1--with=symfony/yaml:^6.4 95.66% <100.00%> (ø)
php8.2 95.66% <100.00%> (ø)
php8.3 95.66% <100.00%> (ø)
php8.4 95.66% <100.00%> (ø)
php8.5 95.66% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@carlos-granados carlos-granados left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @acoulton

@acoulton acoulton merged commit bc7e316 into Behat:master Dec 2, 2025
11 checks passed
@acoulton acoulton deleted the maint-php-cs-fixer-updates branch December 2, 2025 10:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants