Skip to content

Commit 3057a7b

Browse files
committed
minor #51150 Use Stringable interface as much as possible (VincentLanglet)
This PR was squashed before being merged into the 6.4 branch. Discussion ---------- Use Stringable interface as much as possible | Q | A | ------------- | --- | Branch? | 6.4 | Bug fix? | no | New feature? | no <!-- please update src/**/CHANGELOG.md files --> | Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files --> | Tickets | Fix #... <!-- prefix each issue number with "Fix #", no need to create an issue if none exists, explain below instead --> | License | MIT | Doc PR | symfony/symfony-docs#... <!-- required for new features --> Instead of requiring `__toString()` in interfaces, wouldn't it be better to extend `\Stringable` ? (I kept the method when comment was added) Commits ------- 43a7704636 Use Stringable interface as much as possible
2 parents 47a3c07 + 1d373de commit 3057a7b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Cloner/Data.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
/**
1818
* @author Nicolas Grekas <[email protected]>
1919
*/
20-
class Data implements \ArrayAccess, \Countable, \IteratorAggregate
20+
class Data implements \ArrayAccess, \Countable, \IteratorAggregate, \Stringable
2121
{
2222
private array $data;
2323
private int $position = 0;

0 commit comments

Comments
 (0)