Skip to content

Commit cdfbee9

Browse files
Adds the \Stringable interface to classes that have __toString() method (#5920)
Co-authored-by: 李铭昕 <[email protected]>
1 parent 091cb3d commit cdfbee9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Definition/DefinitionInterface.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@
1111
*/
1212
namespace Hyperf\Di\Definition;
1313

14-
interface DefinitionInterface
14+
use Stringable;
15+
16+
interface DefinitionInterface extends Stringable
1517
{
1618
/**
1719
* Definitions can be cast to string for debugging information.

0 commit comments

Comments
 (0)