diff options
author | Thomas Lange <code@nerdmind.de> | 2023-09-23 22:36:21 +0200 |
---|---|---|
committer | Thomas Lange <code@nerdmind.de> | 2023-09-23 22:51:17 +0200 |
commit | 682c761c39d7368928201fe5eb4a3481eca89e35 (patch) | |
tree | 078563e60be4993f02bbdd8da7c861891157ea89 /core/namespace | |
parent | eaf9e1366d2a44387575d9657a44d58f8dd55c09 (diff) | |
download | blog-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".
Diffstat (limited to 'core/namespace')
-rw-r--r-- | core/namespace/Language.php | 2 |
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); } } |