Skip to content

Commit 32809e8

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Translator.php

+1-1
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)