From 5d5308965184fb2761cf411d6e745d66dd78acaa Mon Sep 17 00:00:00 2001 From: Marc Alexander Date: Sat, 30 Dec 2023 18:04:27 +0100 Subject: [PATCH] [ticket/17281] Fix some smaller issues PHPBB3-17281 --- phpBB/phpbb/template/base.php | 2 +- phpBB/phpbb/template/context.php | 4 ++-- phpBB/phpbb/template/template.php | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/phpBB/phpbb/template/base.php b/phpBB/phpbb/template/base.php index 314cdc4796..2cc71869aa 100644 --- a/phpBB/phpbb/template/base.php +++ b/phpBB/phpbb/template/base.php @@ -87,7 +87,7 @@ abstract class base implements template /** * {@inheritdoc} */ - public function assign_var($varname, $varval) + public function assign_var(string $varname, mixed $varval) { $this->context->assign_var($varname, $varval); diff --git a/phpBB/phpbb/template/context.php b/phpBB/phpbb/template/context.php index b510c88ad5..d952a84334 100644 --- a/phpBB/phpbb/template/context.php +++ b/phpBB/phpbb/template/context.php @@ -60,10 +60,10 @@ class context * Value can be a string, an integer or a boolean. * * @param string $varname Variable name - * @param bool|int|string $varval Value to assign to variable + * @param mixed $varval Value to assign to variable * @return true */ - public function assign_var(string $varname, bool|int|string $varval) + public function assign_var(string $varname, mixed $varval) { $this->rootref[$varname] = $varval; diff --git a/phpBB/phpbb/template/template.php b/phpBB/phpbb/template/template.php index c251513698..fef35de0c3 100644 --- a/phpBB/phpbb/template/template.php +++ b/phpBB/phpbb/template/template.php @@ -103,10 +103,10 @@ interface template * Value can be a string, an integer or a boolean. * * @param string $varname Variable name - * @param bool|int|string $varval Value to assign to variable + * @param mixed $varval Value to assign to variable * @return \phpbb\template\template $this */ - public function assign_var(string $varname, bool|int|string $varval); + public function assign_var(string $varname, mixed $varval); /** * Append text to the string value stored in a key.