@@ -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 |
@@ -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 | */ |
@@ -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 | { |
@@ -789,7 +789,7 @@ |
||
789 | 789 | * }); |
790 | 790 | * ``` |
791 | 791 | * |
792 | - * @param string|array $url the URL to be redirected to. This can be in one of the following formats: |
|
792 | + * @param string $url the URL to be redirected to. This can be in one of the following formats: |
|
793 | 793 | * |
794 | 794 | * - a string representing a URL (e.g. "http://example.com") |
795 | 795 | * - a string representing a URL alias (e.g. "@example.com") |
@@ -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. |
@@ -636,7 +636,7 @@ |
||
636 | 636 | * @param string $pattern |
637 | 637 | * @param bool $caseSensitive |
638 | 638 | * @throws \yii\base\InvalidArgumentException |
639 | - * @return array with keys: (string) pattern, (int) flags, (int|bool) firstWildcard |
|
639 | + * @return string with keys: (string) pattern, (int) flags, (int|bool) firstWildcard |
|
640 | 640 | */ |
641 | 641 | private static function parseExcludePattern($pattern, $caseSensitive) |
642 | 642 | { |
@@ -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, |