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 12, 2022
1 parent 47c0644 commit fb1887f
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 fb1887f

Please sign in to comment.