@@ -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 | { |
@@ -185,7 +185,7 @@ discard block |
||
185 | 185 | * Finds the related records and populates them into the primary models. |
186 | 186 | * @param string $name the relation name |
187 | 187 | * @param array $primaryModels primary models |
188 | - * @return array the related models |
|
188 | + * @return ActiveRecordInterface[] the related models |
|
189 | 189 | * @throws InvalidConfigException if [[link]] is invalid |
190 | 190 | */ |
191 | 191 | public function populateRelation($name, &$primaryModels) |
@@ -341,7 +341,7 @@ discard block |
||
341 | 341 | } |
342 | 342 | |
343 | 343 | /** |
344 | - * @param array $models |
|
344 | + * @param ActiveRecordInterface[] $models |
|
345 | 345 | * @param array $link |
346 | 346 | * @param array $viaModels |
347 | 347 | * @param array $viaLink |
@@ -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. |
@@ -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 | { |
@@ -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 | */ |
@@ -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) |
@@ -334,7 +334,7 @@ discard block |
||
334 | 334 | * @param UrlManager $manager the URL manager |
335 | 335 | * @param string $route the route. It should not have slashes at the beginning or the end. |
336 | 336 | * @param array $params the parameters |
337 | - * @return string|bool the created URL, or `false` if this rule cannot be used for creating this URL. |
|
337 | + * @return false|string the created URL, or `false` if this rule cannot be used for creating this URL. |
|
338 | 338 | */ |
339 | 339 | public function createUrl($manager, $route, $params) |
340 | 340 | { |
@@ -425,7 +425,7 @@ discard block |
||
425 | 425 | * When found - replaces this placeholder key with a appropriate name of matching parameter. |
426 | 426 | * Used in [[parseRequest()]], [[createUrl()]]. |
427 | 427 | * |
428 | - * @param array $matches result of `preg_match()` call |
|
428 | + * @param string[] $matches result of `preg_match()` call |
|
429 | 429 | * @return array input array with replaced placeholder keys |
430 | 430 | * @see placeholders |
431 | 431 | * @since 2.0.7 |