From 682c761c39d7368928201fe5eb4a3481eca89e35 Mon Sep 17 00:00:00 2001 From: Thomas Lange Date: Sat, 23 Sep 2023 22:36:21 +0200 Subject: Language: Cast parameter for "vsprintf" to array Since PHP8, the second parameter for the "vsprintf" function MUST BE of type "array", so cast the $arguments variable to "array". --- core/namespace/Language.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/namespace/Language.php b/core/namespace/Language.php index 8d884f9..a2facb0 100644 --- a/core/namespace/Language.php +++ b/core/namespace/Language.php @@ -39,6 +39,6 @@ class Language { return "{{$name}}"; } - return vsprintf($this->text[$name], $arguments); + return vsprintf($this->text[$name], (array) $arguments); } } -- cgit v1.2.3