1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 22:10:45 +02:00

[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
3 changed files with 5 additions and 5 deletions

View File

@@ -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);

View File

@@ -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;

View File

@@ -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.