@@ -231,7 +231,7 @@ |
||
| 231 | 231 | /** |
| 232 | 232 | * Prompts user with confirmation if caches should be flushed. |
| 233 | 233 | * @param array $cachesNames |
| 234 | - * @return bool |
|
| 234 | + * @return boolean|null |
|
| 235 | 235 | */ |
| 236 | 236 | private function confirmFlush($cachesNames) |
| 237 | 237 | { |
@@ -310,7 +310,7 @@ discard block |
||
| 310 | 310 | * Prompts user with confirmation if fixtures should be loaded. |
| 311 | 311 | * @param array $fixtures |
| 312 | 312 | * @param array $except |
| 313 | - * @return bool |
|
| 313 | + * @return boolean|null |
|
| 314 | 314 | */ |
| 315 | 315 | private function confirmLoad($fixtures, $except) |
| 316 | 316 | { |
@@ -342,7 +342,7 @@ discard block |
||
| 342 | 342 | * Prompts user with confirmation for fixtures that should be unloaded. |
| 343 | 343 | * @param array $fixtures |
| 344 | 344 | * @param array $except |
| 345 | - * @return bool |
|
| 345 | + * @return boolean|null |
|
| 346 | 346 | */ |
| 347 | 347 | private function confirmUnload($fixtures, $except) |
| 348 | 348 | { |
@@ -459,8 +459,8 @@ discard block |
||
| 459 | 459 | * ``` |
| 460 | 460 | * |
| 461 | 461 | * @param array $array |
| 462 | - * @param string|\Closure $from |
|
| 463 | - * @param string|\Closure $to |
|
| 462 | + * @param string $from |
|
| 463 | + * @param string $to |
|
| 464 | 464 | * @param string|\Closure $group |
| 465 | 465 | * @return array |
| 466 | 466 | */ |
@@ -515,7 +515,7 @@ discard block |
||
| 515 | 515 | * To sort by multiple keys, provide an array of keys here. |
| 516 | 516 | * @param int|array $direction the sorting direction. It can be either `SORT_ASC` or `SORT_DESC`. |
| 517 | 517 | * When sorting by multiple keys with different sorting directions, use an array of sorting directions. |
| 518 | - * @param int|array $sortFlag the PHP sort flag. Valid values include |
|
| 518 | + * @param integer $sortFlag the PHP sort flag. Valid values include |
|
| 519 | 519 | * `SORT_REGULAR`, `SORT_NUMERIC`, `SORT_STRING`, `SORT_LOCALE_STRING`, `SORT_NATURAL` and `SORT_FLAG_CASE`. |
| 520 | 520 | * Please refer to [PHP manual](http://php.net/manual/en/function.sort.php) |
| 521 | 521 | * for more details. When sorting by multiple keys with different sort flags, use an array of sort flags. |
@@ -634,7 +634,7 @@ |
||
| 634 | 634 | * @param string $pattern |
| 635 | 635 | * @param bool $caseSensitive |
| 636 | 636 | * @throws \yii\base\InvalidParamException |
| 637 | - * @return array with keys: (string) pattern, (int) flags, (int|bool) firstWildcard |
|
| 637 | + * @return string with keys: (string) pattern, (int) flags, (int|bool) firstWildcard |
|
| 638 | 638 | */ |
| 639 | 639 | private static function parseExcludePattern($pattern, $caseSensitive) |
| 640 | 640 | { |
@@ -308,7 +308,7 @@ |
||
| 308 | 308 | * Parses date string into UNIX timestamp |
| 309 | 309 | * |
| 310 | 310 | * @param string $value string representing date |
| 311 | - * @return int|false a UNIX timestamp or `false` on failure. |
|
| 311 | + * @return integer a UNIX timestamp or `false` on failure. |
|
| 312 | 312 | */ |
| 313 | 313 | protected function parseDateValue($value) |
| 314 | 314 | { |
@@ -194,7 +194,7 @@ |
||
| 194 | 194 | * @param string $message the error message. |
| 195 | 195 | * @param string $file the filename that the error was raised in. |
| 196 | 196 | * @param int $line the line number the error was raised at. |
| 197 | - * @return bool whether the normal error handler continues. |
|
| 197 | + * @return null|false whether the normal error handler continues. |
|
| 198 | 198 | * |
| 199 | 199 | * @throws ErrorException |
| 200 | 200 | */ |
@@ -284,7 +284,7 @@ |
||
| 284 | 284 | * |
| 285 | 285 | * @param string $message to echo out before waiting for user input |
| 286 | 286 | * @param bool $default this value is returned if no selection is made. |
| 287 | - * @return bool whether user confirmed. |
|
| 287 | + * @return boolean|null whether user confirmed. |
|
| 288 | 288 | * Will return true if [[interactive]] is false. |
| 289 | 289 | */ |
| 290 | 290 | public function confirm($message, $default = false) |
@@ -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 | { |
@@ -421,7 +421,7 @@ discard block |
||
| 421 | 421 | * @param string $cacheKey generated cache key to store data. |
| 422 | 422 | * @param string $route the route (e.g. `site/index`). |
| 423 | 423 | * @param array $params rule params. |
| 424 | - * @return bool|string the created URL |
|
| 424 | + * @return string|false the created URL |
|
| 425 | 425 | * @see createUrl() |
| 426 | 426 | * @since 2.0.8 |
| 427 | 427 | */ |
@@ -442,7 +442,7 @@ discard block |
||
| 442 | 442 | |
| 443 | 443 | /** |
| 444 | 444 | * Store rule (e.g. [[UrlRule]]) to internal cache |
| 445 | - * @param $cacheKey |
|
| 445 | + * @param string $cacheKey |
|
| 446 | 446 | * @param UrlRuleInterface $rule |
| 447 | 447 | * @since 2.0.8 |
| 448 | 448 | */ |
@@ -459,7 +459,7 @@ discard block |
||
| 459 | 459 | * Note that unlike [[\yii\helpers\Url::toRoute()]], this method always treats the given route |
| 460 | 460 | * as an absolute route. |
| 461 | 461 | * |
| 462 | - * @param string|array $params use a string to represent a route (e.g. `site/index`), |
|
| 462 | + * @param string[] $params use a string to represent a route (e.g. `site/index`), |
|
| 463 | 463 | * or an array to represent a route with query parameters (e.g. `['site/index', 'param1' => 'value1']`). |
| 464 | 464 | * @param string|null $scheme the scheme to use for the URL (either `http`, `https` or empty string |
| 465 | 465 | * for protocol-relative URL). |