1
0
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:
Marc Alexander
2023-12-30 17:41:12 +01:00
parent c6c299eea4
commit 661a8a6117
42 changed files with 107 additions and 80 deletions

View File

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

View File

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

View File

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