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 Mar 7, 2022
1 parent c4cfc0c commit ab988de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Translator.php
Original file line number Diff line number Diff line change
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 ab988de

Please sign in to comment.