diff options
| author | 2023-04-07 00:13:49 +0200 | |
|---|---|---|
| committer | 2023-04-07 00:13:49 +0200 | |
| commit | 6c01e4e7d6c177ac345c826059e585bffdd1d517 (patch) | |
| tree | 45bd8ee233a306881ed81447a3f56ca224fed538 /lib/Minz/Helper.php | |
| parent | 2118448133e327294ad2b69ed8736bc29879103d (diff) | |
Use typed access to request parameters (#5267)
* Use typed access to request parameters
This was a big source of mixed datatypes in many places
* Fix notifications
* Fix bookmarkAction
Diffstat (limited to 'lib/Minz/Helper.php')
| -rw-r--r-- | lib/Minz/Helper.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Minz/Helper.php b/lib/Minz/Helper.php index 3e09c4758..92e97ad6c 100644 --- a/lib/Minz/Helper.php +++ b/lib/Minz/Helper.php @@ -13,7 +13,7 @@ class Minz_Helper { * Wrapper for htmlspecialchars. * Force UTf-8 value and can be used on array too. * @param string|array<string> $var - * @return string|array<string> + * @return ($var is array ? array<string> : string) */ public static function htmlspecialchars_utf8($var) { if (is_array($var)) { |
