[ticket/17281] Fix some smaller issues

PHPBB3-17281
This commit is contained in:
Marc Alexander 2023-12-30 18:04:27 +01:00
parent 661a8a6117
commit 5d53089651
No known key found for this signature in database
GPG key ID: 50E0D2423696F995
3 changed files with 5 additions and 5 deletions

View file

@ -87,7 +87,7 @@ abstract class base implements template
/** /**
* {@inheritdoc} * {@inheritdoc}
*/ */
public function assign_var($varname, $varval) public function assign_var(string $varname, mixed $varval)
{ {
$this->context->assign_var($varname, $varval); $this->context->assign_var($varname, $varval);

View file

@ -60,10 +60,10 @@ class context
* Value can be a string, an integer or a boolean. * Value can be a string, an integer or a boolean.
* *
* @param string $varname Variable name * @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 * @return true
*/ */
public function assign_var(string $varname, bool|int|string $varval) public function assign_var(string $varname, mixed $varval)
{ {
$this->rootref[$varname] = $varval; $this->rootref[$varname] = $varval;

View file

@ -103,10 +103,10 @@ interface template
* Value can be a string, an integer or a boolean. * Value can be a string, an integer or a boolean.
* *
* @param string $varname Variable name * @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 * @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. * Append text to the string value stored in a key.