mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-07 20:08:53 +00:00
[ticket/17281] Fix some smaller issues
PHPBB3-17281
This commit is contained in:
parent
661a8a6117
commit
5d53089651
3 changed files with 5 additions and 5 deletions
|
@ -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);
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Add table
Reference in a new issue