From a423860f42a4466e7beb71efea4f132320525716 Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Thu, 22 Feb 2018 12:37:29 +0100 Subject: Relax what t accepts so we don't break it all Signed-off-by: Roeland Jago Douma --- lib/public/IL10N.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/public/IL10N.php') diff --git a/lib/public/IL10N.php b/lib/public/IL10N.php index 158e0cb156c..2e55c151f62 100644 --- a/lib/public/IL10N.php +++ b/lib/public/IL10N.php @@ -45,14 +45,14 @@ interface IL10N { /** * Translating * @param string $text The text we need a translation for - * @param array $parameters default:array() Parameters for sprintf + * @param array|string $parameters default:array() Parameters for sprintf * @return string Translation or the same text * * Returns the translation. If no translation is found, $text will be * returned. * @since 6.0.0 */ - public function t(string $text, array $parameters = []): string; + public function t(string $text, $parameters = []): string; /** * Translating -- cgit v1.2.3