From 69cf5df204c26a66e1d5c1577af75708809a09e8 Mon Sep 17 00:00:00 2001 From: David Grudl Date: Tue, 16 Nov 2021 14:45:46 +0100 Subject: [PATCH] Translator: changed interface, accepts and returns string|Stringable [Closes #231] (BC break!) --- src/Translator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Translator.php b/src/Translator.php index e8c5f7d06..0c5b2bfe4 100644 --- a/src/Translator.php +++ b/src/Translator.php @@ -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; }