From 1afdd43ddb13e724aba31898f764badc0a97f1f2 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] --- src/Translator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Translator.php b/src/Translator.php index e8c5f7d06..f973f5f15 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; }