@@ -623,7 +623,7 @@ |
||
623 | 623 | * Finds out a line of the first non-char PHP token found. |
624 | 624 | * |
625 | 625 | * @param array $tokens |
626 | - * @return int|string |
|
626 | + * @return string |
|
627 | 627 | * @since 2.0.1 |
628 | 628 | */ |
629 | 629 | 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 | { |
@@ -453,7 +453,7 @@ discard block |
||
453 | 453 | * @param string $cacheKey generated cache key to store data. |
454 | 454 | * @param string $route the route (e.g. `site/index`). |
455 | 455 | * @param array $params rule params. |
456 | - * @return bool|string the created URL |
|
456 | + * @return string|false the created URL |
|
457 | 457 | * @see createUrl() |
458 | 458 | * @since 2.0.8 |
459 | 459 | */ |
@@ -475,7 +475,7 @@ discard block |
||
475 | 475 | |
476 | 476 | /** |
477 | 477 | * Store rule (e.g. [[UrlRule]]) to internal cache. |
478 | - * @param $cacheKey |
|
478 | + * @param string $cacheKey |
|
479 | 479 | * @param UrlRuleInterface $rule |
480 | 480 | * @since 2.0.8 |
481 | 481 | */ |
@@ -492,7 +492,7 @@ discard block |
||
492 | 492 | * Note that unlike [[\yii\helpers\Url::toRoute()]], this method always treats the given route |
493 | 493 | * as an absolute route. |
494 | 494 | * |
495 | - * @param string|array $params use a string to represent a route (e.g. `site/index`), |
|
495 | + * @param string[] $params use a string to represent a route (e.g. `site/index`), |
|
496 | 496 | * or an array to represent a route with query parameters (e.g. `['site/index', 'param1' => 'value1']`). |
497 | 497 | * @param string|null $scheme the scheme to use for the URL (either `http`, `https` or empty string |
498 | 498 | * for protocol-relative URL). |
@@ -537,7 +537,7 @@ |
||
537 | 537 | |
538 | 538 | /** |
539 | 539 | * Returns the request component. |
540 | - * @return \yii\web\Request|\yii\console\Request the request component. |
|
540 | + * @return Request the request component. |
|
541 | 541 | */ |
542 | 542 | public function getRequest() |
543 | 543 | { |