Skip to content

Commit 2337130

Browse files
committed
Translator: changed interface, accepts and returns string|Stringable [Closes #231]
1 parent a828903 commit 2337130

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Translator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ interface Translator
1818
/**
1919
* Translates the given string.
2020
*/
21-
function translate(mixed $message, mixed ...$parameters): string;
21+
function translate(string|\Stringable $message, mixed ...$parameters): string|\Stringable;
2222
}
2323

2424

0 commit comments

Comments
 (0)