@@ -113,7 +113,7 @@ |
||
113 | 113 | /** |
114 | 114 | * Generates a unique key used for storing session data in cache. |
115 | 115 | * @param string $id session variable name |
116 | - * @return mixed a safe cache key associated with the session variable name |
|
116 | + * @return string[] a safe cache key associated with the session variable name |
|
117 | 117 | */ |
118 | 118 | protected function calculateKey($id) |
119 | 119 | { |
@@ -69,7 +69,7 @@ |
||
69 | 69 | /** |
70 | 70 | * Invalidates all of the cached data items that are associated with any of the specified [[tags]]. |
71 | 71 | * @param \Psr\SimpleCache\CacheInterface $cache the cache component that caches the data items |
72 | - * @param string|array $tags |
|
72 | + * @param string $tags |
|
73 | 73 | */ |
74 | 74 | public static function invalidate($cache, $tags) |
75 | 75 | { |
@@ -622,7 +622,7 @@ |
||
622 | 622 | * Finds out a line of the first non-char PHP token found. |
623 | 623 | * |
624 | 624 | * @param array $tokens |
625 | - * @return int|string |
|
625 | + * @return string |
|
626 | 626 | * @since 2.0.1 |
627 | 627 | */ |
628 | 628 | protected function getLine($tokens) |
@@ -52,7 +52,7 @@ |
||
52 | 52 | /** |
53 | 53 | * Get the error code from the last operation. |
54 | 54 | * @link http://php.net/manual/en/messageformatter.geterrorcode.php |
55 | - * @return string Code of the last error. |
|
55 | + * @return integer Code of the last error. |
|
56 | 56 | */ |
57 | 57 | public function getErrorCode() |
58 | 58 | { |
@@ -321,7 +321,7 @@ |
||
321 | 321 | * Parses date string into UNIX timestamp. |
322 | 322 | * |
323 | 323 | * @param string $value string representing date |
324 | - * @return int|false a UNIX timestamp or `false` on failure. |
|
324 | + * @return integer a UNIX timestamp or `false` on failure. |
|
325 | 325 | */ |
326 | 326 | protected function parseDateValue($value) |
327 | 327 | { |
@@ -452,7 +452,7 @@ discard block |
||
452 | 452 | * @param string $cacheKey generated cache key to store data. |
453 | 453 | * @param string $route the route (e.g. `site/index`). |
454 | 454 | * @param array $params rule params. |
455 | - * @return bool|string the created URL |
|
455 | + * @return string|false the created URL |
|
456 | 456 | * @see createUrl() |
457 | 457 | * @since 2.0.8 |
458 | 458 | */ |
@@ -473,7 +473,7 @@ discard block |
||
473 | 473 | |
474 | 474 | /** |
475 | 475 | * Store rule (e.g. [[UrlRule]]) to internal cache. |
476 | - * @param $cacheKey |
|
476 | + * @param string $cacheKey |
|
477 | 477 | * @param UrlRuleInterface $rule |
478 | 478 | * @since 2.0.8 |
479 | 479 | */ |
@@ -490,7 +490,7 @@ discard block |
||
490 | 490 | * Note that unlike [[\yii\helpers\Url::toRoute()]], this method always treats the given route |
491 | 491 | * as an absolute route. |
492 | 492 | * |
493 | - * @param string|array $params use a string to represent a route (e.g. `site/index`), |
|
493 | + * @param string[] $params use a string to represent a route (e.g. `site/index`), |
|
494 | 494 | * or an array to represent a route with query parameters (e.g. `['site/index', 'param1' => 'value1']`). |
495 | 495 | * @param string|null $scheme the scheme to use for the URL (either `http`, `https` or empty string |
496 | 496 | * for protocol-relative URL). |
@@ -218,7 +218,7 @@ discard block |
||
218 | 218 | * This method retains the immutability of the message and returns an instance that has the |
219 | 219 | * new and/or updated header and value. |
220 | 220 | * @param string $name Case-insensitive header field name. |
221 | - * @param string|string[] $value Header value(s). |
|
221 | + * @param string $value Header value(s). |
|
222 | 222 | * @return static |
223 | 223 | * @throws \InvalidArgumentException for invalid header names or values. |
224 | 224 | */ |
@@ -288,7 +288,7 @@ discard block |
||
288 | 288 | |
289 | 289 | /** |
290 | 290 | * Specifies message body. |
291 | - * @param StreamInterface|\Closure|array $body stream instance or its DI compatible configuration. |
|
291 | + * @param StreamInterface|null $body stream instance or its DI compatible configuration. |
|
292 | 292 | */ |
293 | 293 | public function setBody($body) |
294 | 294 | { |
@@ -269,7 +269,7 @@ discard block |
||
269 | 269 | |
270 | 270 | /** |
271 | 271 | * Specifies query string. |
272 | - * @param string|array|object $query the query string or array of query parameters. |
|
272 | + * @param string $query the query string or array of query parameters. |
|
273 | 273 | */ |
274 | 274 | public function setQuery($query) |
275 | 275 | { |
@@ -407,7 +407,7 @@ discard block |
||
407 | 407 | |
408 | 408 | /** |
409 | 409 | * @param string $name URI component name. |
410 | - * @param mixed $default default value, which should be returned in case component is not exist. |
|
410 | + * @param string $default default value, which should be returned in case component is not exist. |
|
411 | 411 | * @return mixed URI component value. |
412 | 412 | */ |
413 | 413 | protected function getComponent($name, $default = null) |
@@ -236,7 +236,7 @@ |
||
236 | 236 | /** |
237 | 237 | * Prompts user with confirmation if caches should be cleared. |
238 | 238 | * @param array $cachesNames |
239 | - * @return bool |
|
239 | + * @return boolean|null |
|
240 | 240 | */ |
241 | 241 | private function confirmClear($cachesNames) |
242 | 242 | { |