@@ -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 | { |
@@ -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 | { |
@@ -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) |
@@ -196,7 +196,7 @@ discard block |
||
| 196 | 196 | * `$categories` and `$excludeCategories` as parameters to retrieve the |
| 197 | 197 | * results that you are interested in. |
| 198 | 198 | * |
| 199 | - * @param array $categories list of categories that you are interested in. |
|
| 199 | + * @param string[] $categories list of categories that you are interested in. |
|
| 200 | 200 | * You can use an asterisk at the end of a category to do a prefix match. |
| 201 | 201 | * For example, 'yii\db\*' will match categories starting with 'yii\db\', |
| 202 | 202 | * such as 'yii\db\Connection'. |
@@ -246,7 +246,7 @@ discard block |
||
| 246 | 246 | * Returns the statistical results of DB queries. |
| 247 | 247 | * The results returned include the number of SQL statements executed and |
| 248 | 248 | * the total time spent. |
| 249 | - * @return array the first element indicates the number of SQL statements executed, |
|
| 249 | + * @return integer[] the first element indicates the number of SQL statements executed, |
|
| 250 | 250 | * and the second element the total time spent in SQL execution. |
| 251 | 251 | */ |
| 252 | 252 | public function getDbProfiling() |
@@ -144,7 +144,7 @@ |
||
| 144 | 144 | /** |
| 145 | 145 | * Generates a hash code that can be used for client-side validation. |
| 146 | 146 | * @param string $code the CAPTCHA code |
| 147 | - * @return string a hash code generated from the CAPTCHA code |
|
| 147 | + * @return integer a hash code generated from the CAPTCHA code |
|
| 148 | 148 | */ |
| 149 | 149 | public function generateValidationHash($code) |
| 150 | 150 | { |
@@ -392,7 +392,7 @@ |
||
| 392 | 392 | * @param bool|array $eagerLoading whether to eager load the relations specified in `$with`. |
| 393 | 393 | * When this is a boolean, it applies to all relations specified in `$with`. Use an array |
| 394 | 394 | * to explicitly list which relations in `$with` need to be eagerly loaded. Defaults to `true`. |
| 395 | - * @param string|array $joinType the join type of the relations specified in `$with`. |
|
| 395 | + * @param string $joinType the join type of the relations specified in `$with`. |
|
| 396 | 396 | * When this is a string, it applies to all relations specified in `$with`. Use an array |
| 397 | 397 | * in the format of `relationName => joinType` to specify different join types for different relations. |
| 398 | 398 | * @return $this the query object itself |
@@ -114,7 +114,7 @@ |
||
| 114 | 114 | /** |
| 115 | 115 | * Returns a single column from the next row of a result set. |
| 116 | 116 | * @param int $columnIndex zero-based column index |
| 117 | - * @return mixed the column of the current row, false if no more rows available |
|
| 117 | + * @return string the column of the current row, false if no more rows available |
|
| 118 | 118 | */ |
| 119 | 119 | public function readColumn($columnIndex) |
| 120 | 120 | { |
@@ -768,7 +768,7 @@ discard block |
||
| 768 | 768 | |
| 769 | 769 | /** |
| 770 | 770 | * Sets the GROUP BY part of the query. |
| 771 | - * @param string|array|Expression $columns the columns to be grouped by. |
|
| 771 | + * @param string $columns the columns to be grouped by. |
|
| 772 | 772 | * Columns can be specified in either a string (e.g. "id, name") or an array (e.g. ['id', 'name']). |
| 773 | 773 | * The method will automatically quote the column names unless a column contains some parenthesis |
| 774 | 774 | * (which means the column contains a DB expression). |
@@ -967,7 +967,7 @@ discard block |
||
| 967 | 967 | |
| 968 | 968 | /** |
| 969 | 969 | * Appends a SQL statement using UNION operator. |
| 970 | - * @param string|Query $sql the SQL statement to be appended using UNION |
|
| 970 | + * @param Query $sql the SQL statement to be appended using UNION |
|
| 971 | 971 | * @param bool $all TRUE if using UNION ALL and FALSE if using UNION |
| 972 | 972 | * @return $this the query object itself |
| 973 | 973 | */ |