Skip to content

Commit b9d701e

Browse files
VincentLangletfabpot
authored andcommitted
Use Stringable interface as much as possible
1 parent 9cb7423 commit b9d701e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Authentication/Token/TokenInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
* @author Fabien Potencier <[email protected]>
2020
* @author Johannes M. Schmitt <[email protected]>
2121
*/
22-
interface TokenInterface
22+
interface TokenInterface extends \Stringable
2323
{
2424
/**
2525
* Returns a string representation of the Token.

User/InMemoryUser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
* @author Robin Chalas <[email protected]>
2020
* @author Fabien Potencier <[email protected]>
2121
*/
22-
final class InMemoryUser implements UserInterface, PasswordAuthenticatedUserInterface, EquatableInterface
22+
final class InMemoryUser implements UserInterface, PasswordAuthenticatedUserInterface, EquatableInterface, \Stringable
2323
{
2424
private string $username;
2525
private ?string $password;

0 commit comments

Comments
 (0)