Completed
Push — php7-remove-phpunit-compat ( 9a3480...8378c0 )
by Alexander
11:59
created
framework/captcha/CaptchaAction.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -144,7 +144,7 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
framework/db/ActiveQuery.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -392,7 +392,7 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
framework/db/DataReader.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -114,7 +114,7 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
framework/web/Response.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -789,7 +789,7 @@
 block discarded – undo
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")
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,6 @@
 block discarded – undo
10 10
 use Yii;
11 11
 use yii\base\InvalidArgumentException;
12 12
 use yii\base\InvalidConfigException;
13
-use yii\base\InvalidParamException;
14 13
 use yii\helpers\FileHelper;
15 14
 use yii\helpers\Inflector;
16 15
 use yii\helpers\StringHelper;
Please login to merge, or discard this patch.
framework/web/User.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -175,7 +175,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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.
Please login to merge, or discard this patch.
framework/helpers/BaseFileHelper.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -636,7 +636,7 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
framework/log/Logger.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -197,7 +197,7 @@  discard block
 block discarded – undo
197 197
      * `$categories` and `$excludeCategories` as parameters to retrieve the
198 198
      * results that you are interested in.
199 199
      *
200
-     * @param array $categories list of categories that you are interested in.
200
+     * @param string[] $categories list of categories that you are interested in.
201 201
      * You can use an asterisk at the end of a category to do a prefix match.
202 202
      * For example, 'yii\db\*' will match categories starting with 'yii\db\',
203 203
      * such as `yii\db\Connection`.
@@ -247,7 +247,7 @@  discard block
 block discarded – undo
247 247
      * Returns the statistical results of DB queries.
248 248
      * The results returned include the number of SQL statements executed and
249 249
      * the total time spent.
250
-     * @return array the first element indicates the number of SQL statements executed,
250
+     * @return integer[] the first element indicates the number of SQL statements executed,
251 251
      * and the second element the total time spent in SQL execution.
252 252
      */
253 253
     public function getDbProfiling()
Please login to merge, or discard this patch.
framework/helpers/BaseHtml.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -216,7 +216,7 @@
 block discarded – undo
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,
Please login to merge, or discard this patch.
framework/db/mysql/QueryBuilder.php 1 patch
Doc Comments   +2 added lines patch added patch discarded remove patch
@@ -251,6 +251,7 @@  discard block
 block discarded – undo
251 251
     /**
252 252
      * @inheritdoc
253 253
      * @since 2.0.8
254
+     * @param string $comment
254 255
      */
255 256
     public function addCommentOnColumn($table, $column, $comment)
256 257
     {
@@ -267,6 +268,7 @@  discard block
 block discarded – undo
267 268
     /**
268 269
      * @inheritdoc
269 270
      * @since 2.0.8
271
+     * @param string $comment
270 272
      */
271 273
     public function addCommentOnTable($table, $comment)
272 274
     {
Please login to merge, or discard this patch.