mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02:00
[ticket/17281] Update psalm config and fix issues
PHPBB3-17281
This commit is contained in:
@@ -60,10 +60,10 @@ class context
|
||||
* Value can be a string, an integer or a boolean.
|
||||
*
|
||||
* @param string $varname Variable name
|
||||
* @param string $varval Value to assign to variable
|
||||
* @param bool|int|string $varval Value to assign to variable
|
||||
* @return true
|
||||
*/
|
||||
public function assign_var($varname, $varval)
|
||||
public function assign_var(string $varname, bool|int|string $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 string $varval Value to assign to variable
|
||||
* @param bool|int|string $varval Value to assign to variable
|
||||
* @return \phpbb\template\template $this
|
||||
*/
|
||||
public function assign_var($varname, $varval);
|
||||
public function assign_var(string $varname, bool|int|string $varval);
|
||||
|
||||
/**
|
||||
* Append text to the string value stored in a key.
|
||||
|
@@ -58,7 +58,7 @@ class icon extends AbstractExtension
|
||||
*
|
||||
* @param environment $environment Twig environment object
|
||||
* @param string $type Icon type (font|iconify|png|svg)
|
||||
* @param string $icon Icon name (eg. "bold")
|
||||
* @param array|string $icon Icon name (eg. "bold")
|
||||
* @param string $title Icon title
|
||||
* @param bool $hidden Hide the icon title from view
|
||||
* @param string $classes Additional classes (eg. "fa-fw")
|
||||
|
Reference in New Issue
Block a user