@@ -79,7 +79,7 @@ discard block |
||
| 79 | 79 | * information see Xoops\Core\FilterInput::clean(). |
| 80 | 80 | * @param int $mask Filter mask for the variable |
| 81 | 81 | * |
| 82 | - * @return mixed Requested variable |
|
| 82 | + * @return string|null Requested variable |
|
| 83 | 83 | */ |
| 84 | 84 | public static function getVar($name, $default = null, $hash = 'default', $type = 'none', $mask = 0) |
| 85 | 85 | { |
@@ -141,7 +141,7 @@ discard block |
||
| 141 | 141 | * @param int $default Default value if the variable does not exist |
| 142 | 142 | * @param string $hash Where the var should come from (POST, GET, FILES, COOKIE, METHOD) |
| 143 | 143 | * |
| 144 | - * @return int Requested variable |
|
| 144 | + * @return string|null Requested variable |
|
| 145 | 145 | */ |
| 146 | 146 | public static function getInt($name, $default = 0, $hash = 'default') |
| 147 | 147 | { |
@@ -159,7 +159,7 @@ discard block |
||
| 159 | 159 | * @param float $default Default value if the variable does not exist |
| 160 | 160 | * @param string $hash Where the var should come from (POST, GET, FILES, COOKIE, METHOD) |
| 161 | 161 | * |
| 162 | - * @return float Requested variable |
|
| 162 | + * @return string|null Requested variable |
|
| 163 | 163 | */ |
| 164 | 164 | public static function getFloat($name, $default = 0.0, $hash = 'default') |
| 165 | 165 | { |
@@ -177,7 +177,7 @@ discard block |
||
| 177 | 177 | * @param bool $default Default value if the variable does not exist |
| 178 | 178 | * @param string $hash Where the var should come from (POST, GET, FILES, COOKIE, METHOD) |
| 179 | 179 | * |
| 180 | - * @return bool Requested variable |
|
| 180 | + * @return string|null Requested variable |
|
| 181 | 181 | */ |
| 182 | 182 | public static function getBool($name, $default = false, $hash = 'default') |
| 183 | 183 | { |
@@ -247,7 +247,7 @@ discard block |
||
| 247 | 247 | * @param mixed $default Default value if the variable does not exist |
| 248 | 248 | * @param string $hash Where the var should come from (POST, GET, FILES, COOKIE, METHOD) |
| 249 | 249 | * |
| 250 | - * @return array |
|
| 250 | + * @return string|null |
|
| 251 | 251 | */ |
| 252 | 252 | public static function getArray($name, $default = array(), $hash = 'default') |
| 253 | 253 | { |