@@ -320,7 +320,7 @@ |
||
320 | 320 | /** |
321 | 321 | * Returns the list of all attribute names of the model. |
322 | 322 | * The default implementation will return all column names of the table associated with this AR class. |
323 | - * @return array list of attribute names. |
|
323 | + * @return integer[] list of attribute names. |
|
324 | 324 | */ |
325 | 325 | public function attributes() |
326 | 326 | { |
@@ -60,7 +60,7 @@ |
||
60 | 60 | * Check the given requirements, collecting results into internal field. |
61 | 61 | * This method can be invoked several times checking different requirement sets. |
62 | 62 | * Use [[getResult()]] or [[render()]] to get the results. |
63 | - * @param array|string $requirements requirements to be checked. |
|
63 | + * @param string $requirements requirements to be checked. |
|
64 | 64 | * If an array, it is treated as the set of requirements; |
65 | 65 | * If a string, it is treated as the path of the file, which contains the requirements; |
66 | 66 | * @return $this self instance. |
@@ -426,7 +426,7 @@ |
||
426 | 426 | * If the parameter does not exist, the second parameter passed to this method will be returned. |
427 | 427 | * @param string $name the parameter name |
428 | 428 | * @param mixed $defaultValue the default parameter value if the parameter does not exist. |
429 | - * @return mixed the parameter value |
|
429 | + * @return string the parameter value |
|
430 | 430 | * @see getBodyParams() |
431 | 431 | * @see setBodyParams() |
432 | 432 | */ |
@@ -224,7 +224,7 @@ |
||
224 | 224 | } |
225 | 225 | |
226 | 226 | /** |
227 | - * @return array the begin and end pages that need to be displayed. |
|
227 | + * @return integer[] the begin and end pages that need to be displayed. |
|
228 | 228 | */ |
229 | 229 | protected function getPageRange() |
230 | 230 | { |
@@ -126,7 +126,7 @@ |
||
126 | 126 | * This method is called by [[evaluateAttributes()]]. Its return value will be assigned |
127 | 127 | * to the attributes corresponding to the triggering event. |
128 | 128 | * @param Event $event the event that triggers the current attribute updating. |
129 | - * @return mixed the attribute value |
|
129 | + * @return string the attribute value |
|
130 | 130 | */ |
131 | 131 | protected function getValue($event) |
132 | 132 | { |
@@ -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 | { |
@@ -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 | { |
@@ -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 | */ |