aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Lange <code@nerdmind.de>2023-09-23 22:36:21 +0200
committerThomas Lange <code@nerdmind.de>2023-09-23 22:51:17 +0200
commit682c761c39d7368928201fe5eb4a3481eca89e35 (patch)
tree078563e60be4993f02bbdd8da7c861891157ea89
parenteaf9e1366d2a44387575d9657a44d58f8dd55c09 (diff)
downloadblog-682c761c39d7368928201fe5eb4a3481eca89e35.tar.gz
blog-682c761c39d7368928201fe5eb4a3481eca89e35.tar.xz
blog-682c761c39d7368928201fe5eb4a3481eca89e35.zip
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".
-rw-r--r--core/namespace/Language.php2
1 files changed, 1 insertions, 1 deletions
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);
}
}