diff options
author | wn_ <[email protected]> | 2021-11-14 20:12:37 +0000 |
---|---|---|
committer | wn_ <[email protected]> | 2021-11-14 20:13:09 +0000 |
commit | abab2a94e8443f205719e9a66c66e3f00a371195 (patch) | |
tree | 4983176f0d2b857735d425154c42dc2149443e02 /include/controls.php | |
parent | b8f0627a0e5480d872eb1d64224cdfbfcd92b1b8 (diff) |
Address PHPStan warning in 'classes/pref/prefs.php'.
Also update 'select_hash' and 'select_tag' values param, which can have int or string keys.
Diffstat (limited to 'include/controls.php')
-rwxr-xr-x | include/controls.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/controls.php b/include/controls.php index 46bcf56a0..1ea019769 100755 --- a/include/controls.php +++ b/include/controls.php @@ -82,7 +82,7 @@ /** * @param mixed $value - * @param array<int, string> $values + * @param array<int|string, string> $values * @param array<string, mixed> $attributes */ function select_tag(string $name, $value, array $values, array $attributes = [], string $id = ""): string { @@ -110,8 +110,8 @@ }*/ /** - * @param mixed $value - * @param array<int, string> $values + * @param mixed $value + * @param array<int|string, string> $values * @param array<string, mixed> $attributes */ function select_hash(string $name, $value, array $values, array $attributes = [], string $id = ""): string { |