@@ -507,7 +507,7 @@ discard block |
||
507 | 507 | * If the parameter does not exist, the second parameter passed to this method will be returned. |
508 | 508 | * @param string $name the parameter name |
509 | 509 | * @param mixed $defaultValue the default parameter value if the parameter does not exist. |
510 | - * @return mixed the parameter value |
|
510 | + * @return string the parameter value |
|
511 | 511 | * @see getBodyParams() |
512 | 512 | * @see setBodyParams() |
513 | 513 | */ |
@@ -1459,7 +1459,7 @@ discard block |
||
1459 | 1459 | } |
1460 | 1460 | |
1461 | 1461 | /** |
1462 | - * @param $maskedToken A masked token. |
|
1462 | + * @param string $maskedToken A masked token. |
|
1463 | 1463 | * @return string An unmasked token, or an empty string in case of invalid token format. |
1464 | 1464 | */ |
1465 | 1465 | protected function unmaskCsrfToken($maskedToken) |
@@ -9,7 +9,6 @@ |
||
9 | 9 | |
10 | 10 | use Yii; |
11 | 11 | use yii\base\InvalidConfigException; |
12 | -use yii\base\Security; |
|
13 | 12 | use yii\helpers\StringHelper; |
14 | 13 | |
15 | 14 | /** |