Skip to content

Commit

Permalink
Translator: changed interface, accepts and returns string|Stringable [C…
Browse files Browse the repository at this point in the history
…loses #231]
  • Loading branch information
dg committed Nov 16, 2021
1 parent a828903 commit 2337130
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Translator.php
Expand Up @@ -18,7 +18,7 @@ interface Translator
/**
* Translates the given string.
*/
function translate(mixed $message, mixed ...$parameters): string;
function translate(string|\Stringable $message, mixed ...$parameters): string|\Stringable;
}


Expand Down

0 comments on commit 2337130

Please sign in to comment.