@@ -196,7 +196,7 @@ |
||
196 | 196 | * @param string $message the error message. |
197 | 197 | * @param string $file the filename that the error was raised in. |
198 | 198 | * @param int $line the line number the error was raised at. |
199 | - * @return bool whether the normal error handler continues. |
|
199 | + * @return null|false whether the normal error handler continues. |
|
200 | 200 | * |
201 | 201 | * @throws ErrorException |
202 | 202 | */ |
@@ -284,7 +284,7 @@ discard block |
||
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) |
@@ -320,7 +320,7 @@ discard block |
||
320 | 320 | * until [[beforeAction()]] is being called. |
321 | 321 | * |
322 | 322 | * @param string $actionID the action id of the current request |
323 | - * @return array the names of the options valid for the action |
|
323 | + * @return string[] the names of the options valid for the action |
|
324 | 324 | */ |
325 | 325 | public function options($actionID) |
326 | 326 | { |
@@ -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 | { |
@@ -594,7 +594,7 @@ |
||
594 | 594 | * Finds out a line of the first non-char PHP token found |
595 | 595 | * |
596 | 596 | * @param array $tokens |
597 | - * @return int|string |
|
597 | + * @return string |
|
598 | 598 | * @since 2.0.1 |
599 | 599 | */ |
600 | 600 | protected function getLine($tokens) |
@@ -490,8 +490,8 @@ discard block |
||
490 | 490 | * ``` |
491 | 491 | * |
492 | 492 | * @param array $array |
493 | - * @param string|\Closure $from |
|
494 | - * @param string|\Closure $to |
|
493 | + * @param string $from |
|
494 | + * @param string $to |
|
495 | 495 | * @param string|\Closure $group |
496 | 496 | * @return array |
497 | 497 | */ |
@@ -546,7 +546,7 @@ discard block |
||
546 | 546 | * To sort by multiple keys, provide an array of keys here. |
547 | 547 | * @param int|array $direction the sorting direction. It can be either `SORT_ASC` or `SORT_DESC`. |
548 | 548 | * When sorting by multiple keys with different sorting directions, use an array of sorting directions. |
549 | - * @param int|array $sortFlag the PHP sort flag. Valid values include |
|
549 | + * @param integer $sortFlag the PHP sort flag. Valid values include |
|
550 | 550 | * `SORT_REGULAR`, `SORT_NUMERIC`, `SORT_STRING`, `SORT_LOCALE_STRING`, `SORT_NATURAL` and `SORT_FLAG_CASE`. |
551 | 551 | * Please refer to [PHP manual](http://php.net/manual/en/function.sort.php) |
552 | 552 | * for more details. When sorting by multiple keys with different sort flags, use an array of sort flags. |
@@ -576,7 +576,7 @@ discard block |
||
576 | 576 | * - windows without ansicon |
577 | 577 | * - not tty consoles |
578 | 578 | * |
579 | - * @param mixed $stream |
|
579 | + * @param resource $stream |
|
580 | 580 | * @return bool true if the stream supports ANSI colors, otherwise false. |
581 | 581 | */ |
582 | 582 | public static function streamSupportsAnsiColors($stream) |
@@ -601,7 +601,7 @@ discard block |
||
601 | 601 | * @param bool $refresh whether to force checking and not re-use cached size value. |
602 | 602 | * This is useful to detect changing window size while the application is running but may |
603 | 603 | * not get up to date values on every terminal. |
604 | - * @return array|bool An array of ($width, $height) or false when it was not able to determine size. |
|
604 | + * @return string An array of ($width, $height) or false when it was not able to determine size. |
|
605 | 605 | */ |
606 | 606 | public static function getScreenSize($refresh = false) |
607 | 607 | { |
@@ -807,7 +807,7 @@ discard block |
||
807 | 807 | * |
808 | 808 | * @param string $message to print out before waiting for user input |
809 | 809 | * @param bool $default this value is returned if no selection is made. |
810 | - * @return bool whether user confirmed |
|
810 | + * @return boolean|null whether user confirmed |
|
811 | 811 | */ |
812 | 812 | public static function confirm($message, $default = false) |
813 | 813 | { |
@@ -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 | { |
@@ -52,7 +52,7 @@ discard block |
||
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 | { |
@@ -79,7 +79,7 @@ discard block |
||
79 | 79 | * @param string $pattern The pattern string to insert parameters into. |
80 | 80 | * @param array $params The array of name value pairs to insert into the format string. |
81 | 81 | * @param string $language The locale to use for formatting locale-dependent parts |
82 | - * @return string|bool The formatted pattern string or `FALSE` if an error occurred |
|
82 | + * @return string|false The formatted pattern string or `FALSE` if an error occurred |
|
83 | 83 | */ |
84 | 84 | public function format($pattern, $params, $language) |
85 | 85 | { |
@@ -259,7 +259,7 @@ discard block |
||
259 | 259 | * @param string $pattern The pattern string to insert things into. |
260 | 260 | * @param array $args The array of values to insert into the format string |
261 | 261 | * @param string $locale The locale to use for formatting locale-dependent parts |
262 | - * @return string|bool The formatted pattern string or `FALSE` if an error occurred |
|
262 | + * @return false|string The formatted pattern string or `FALSE` if an error occurred |
|
263 | 263 | */ |
264 | 264 | protected function fallbackFormat($pattern, $args, $locale) |
265 | 265 | { |