@@ -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 | { |
@@ -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 | { |
@@ -175,7 +175,7 @@ discard block |
||
| 175 | 175 | * stored in session and reconstruct the corresponding identity object, if it has not done so before. |
| 176 | 176 | * @param bool $autoRenew whether to automatically renew authentication status if it has not been done so before. |
| 177 | 177 | * This is only useful when [[enableSession]] is true. |
| 178 | - * @return IdentityInterface|null the identity object associated with the currently logged-in user. |
|
| 178 | + * @return null|boolean the identity object associated with the currently logged-in user. |
|
| 179 | 179 | * `null` is returned if the user is not logged in (not authenticated). |
| 180 | 180 | * @see login() |
| 181 | 181 | * @see logout() |
@@ -259,7 +259,7 @@ discard block |
||
| 259 | 259 | * with the provided access token. If successful, it will call [[login()]] to log in the authenticated user. |
| 260 | 260 | * If authentication fails or [[login()]] is unsuccessful, it will return null. |
| 261 | 261 | * @param string $token the access token |
| 262 | - * @param mixed $type the type of the token. The value of this parameter depends on the implementation. |
|
| 262 | + * @param string $type the type of the token. The value of this parameter depends on the implementation. |
|
| 263 | 263 | * For example, [[\yii\filters\auth\HttpBearerAuth]] will set this parameter to be `yii\filters\auth\HttpBearerAuth`. |
| 264 | 264 | * @return IdentityInterface|null the identity associated with the given access token. Null is returned if |
| 265 | 265 | * the access token is invalid or [[login()]] is unsuccessful. |
@@ -216,7 +216,7 @@ |
||
| 216 | 216 | |
| 217 | 217 | /** |
| 218 | 218 | * Generates a link tag that refers to an external CSS file. |
| 219 | - * @param array|string $url the URL of the external CSS file. This parameter will be processed by [[Url::to()]]. |
|
| 219 | + * @param string|boolean $url the URL of the external CSS file. This parameter will be processed by [[Url::to()]]. |
|
| 220 | 220 | * @param array $options the tag options in terms of name-value pairs. The following options are specially handled: |
| 221 | 221 | * |
| 222 | 222 | * - condition: specifies the conditional comments for IE, e.g., `lt IE 9`. When this is specified, |
@@ -415,7 +415,7 @@ discard block |
||
| 415 | 415 | * @param UrlManager $manager the URL manager |
| 416 | 416 | * @param string $route the route. It should not have slashes at the beginning or the end. |
| 417 | 417 | * @param array $params the parameters |
| 418 | - * @return string|bool the created URL, or `false` if this rule cannot be used for creating this URL. |
|
| 418 | + * @return false|string the created URL, or `false` if this rule cannot be used for creating this URL. |
|
| 419 | 419 | */ |
| 420 | 420 | public function createUrl($manager, $route, $params) |
| 421 | 421 | { |
@@ -513,7 +513,7 @@ discard block |
||
| 513 | 513 | * When found - replaces this placeholder key with a appropriate name of matching parameter. |
| 514 | 514 | * Used in [[parseRequest()]], [[createUrl()]]. |
| 515 | 515 | * |
| 516 | - * @param array $matches result of `preg_match()` call |
|
| 516 | + * @param string[] $matches result of `preg_match()` call |
|
| 517 | 517 | * @return array input array with replaced placeholder keys |
| 518 | 518 | * @see placeholders |
| 519 | 519 | * @since 2.0.7 |
@@ -203,7 +203,7 @@ discard block |
||
| 203 | 203 | * yii migrate/down all # revert all migrations |
| 204 | 204 | * ``` |
| 205 | 205 | * |
| 206 | - * @param int|string $limit the number of migrations to be reverted. Defaults to 1, |
|
| 206 | + * @param integer $limit the number of migrations to be reverted. Defaults to 1, |
|
| 207 | 207 | * meaning the last applied migration will be reverted. When value is "all", all migrations will be reverted. |
| 208 | 208 | * @throws Exception if the number of the steps specified is less than 1. |
| 209 | 209 | * |
@@ -265,7 +265,7 @@ discard block |
||
| 265 | 265 | * yii migrate/redo all # redo all migrations |
| 266 | 266 | * ``` |
| 267 | 267 | * |
| 268 | - * @param int|string $limit the number of migrations to be redone. Defaults to 1, |
|
| 268 | + * @param integer $limit the number of migrations to be redone. Defaults to 1, |
|
| 269 | 269 | * meaning the last applied migration will be redone. When equals "all", all migrations will be redone. |
| 270 | 270 | * @throws Exception if the number of the steps specified is less than 1. |
| 271 | 271 | * |
@@ -462,7 +462,7 @@ discard block |
||
| 462 | 462 | * yii migrate/history all # showing the whole history |
| 463 | 463 | * ``` |
| 464 | 464 | * |
| 465 | - * @param int|string $limit the maximum number of migrations to be displayed. |
|
| 465 | + * @param integer $limit the maximum number of migrations to be displayed. |
|
| 466 | 466 | * If it is "all", the whole migration history will be displayed. |
| 467 | 467 | * @throws \yii\console\Exception if invalid limit value passed |
| 468 | 468 | */ |
@@ -506,7 +506,7 @@ discard block |
||
| 506 | 506 | * yii migrate/new all # showing all new migrations |
| 507 | 507 | * ``` |
| 508 | 508 | * |
| 509 | - * @param int|string $limit the maximum number of new migrations to be displayed. |
|
| 509 | + * @param integer $limit the maximum number of new migrations to be displayed. |
|
| 510 | 510 | * If it is `all`, all available new migrations will be displayed. |
| 511 | 511 | * @throws \yii\console\Exception if invalid limit value passed |
| 512 | 512 | */ |
@@ -242,7 +242,7 @@ discard block |
||
| 242 | 242 | |
| 243 | 243 | /** |
| 244 | 244 | * Binds a parameter to the SQL statement to be executed. |
| 245 | - * @param string|int $name parameter identifier. For a prepared statement |
|
| 245 | + * @param string $name parameter identifier. For a prepared statement |
|
| 246 | 246 | * using named placeholders, this will be a parameter name of |
| 247 | 247 | * the form `:name`. For a prepared statement using question mark |
| 248 | 248 | * placeholders, this will be the 1-indexed position of the parameter. |
@@ -379,7 +379,7 @@ discard block |
||
| 379 | 379 | /** |
| 380 | 380 | * Executes the SQL statement and returns the value of the first column in the first row of data. |
| 381 | 381 | * This method is best used when only a single value is needed for a query. |
| 382 | - * @return string|null|false the value of the first column in the first row of the query result. |
|
| 382 | + * @return string the value of the first column in the first row of the query result. |
|
| 383 | 383 | * False is returned if there is no value. |
| 384 | 384 | * @throws Exception execution failed |
| 385 | 385 | */ |