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] (BC break!)
  • Loading branch information
dg committed Nov 16, 2021
1 parent a828903 commit 69cf5df
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;

This comment has been minimized.

Copy link
@mabar

mabar Nov 16, 2021

Contributor

Should be string|\Stringable

}


Expand Down

0 comments on commit 69cf5df

Please sign in to comment.