@@ -350,7 +350,7 @@ |
||
350 | 350 | /** |
351 | 351 | * Detect attribute type from given validator. |
352 | 352 | * |
353 | - * @param Validator validator from which to detect attribute type. |
|
353 | + * @param Validator Validator from which to detect attribute type. |
|
354 | 354 | * @return string|null detected attribute type. |
355 | 355 | * @since 2.0.14 |
356 | 356 | */ |
@@ -217,7 +217,7 @@ discard block |
||
217 | 217 | * Finds the related records and populates them into the primary models. |
218 | 218 | * @param string $name the relation name |
219 | 219 | * @param array $primaryModels primary models |
220 | - * @return array the related models |
|
220 | + * @return ActiveRecordInterface[] the related models |
|
221 | 221 | * @throws InvalidConfigException if [[link]] is invalid |
222 | 222 | */ |
223 | 223 | public function populateRelation($name, &$primaryModels) |
@@ -383,7 +383,7 @@ discard block |
||
383 | 383 | } |
384 | 384 | |
385 | 385 | /** |
386 | - * @param array $models |
|
386 | + * @param ActiveRecordInterface[] $models |
|
387 | 387 | * @param array $link |
388 | 388 | * @param array $viaModels |
389 | 389 | * @param null|self $viaQuery |
@@ -10,7 +10,6 @@ |
||
10 | 10 | use yii\db\ExpressionBuilderInterface; |
11 | 11 | use yii\db\ExpressionBuilderTrait; |
12 | 12 | use yii\db\ExpressionInterface; |
13 | -use yii\db\Query; |
|
14 | 13 | |
15 | 14 | /** |
16 | 15 | * Class NotConditionBuilder builds objects of [[SimpleCondition]] |
@@ -424,7 +424,7 @@ discard block |
||
424 | 424 | * Executes the INSERT command, returning primary key values. |
425 | 425 | * @param string $table the table that new rows will be inserted into. |
426 | 426 | * @param array $columns the column data (name => value) to be inserted into the table. |
427 | - * @return array|false primary key values or false if the command fails |
|
427 | + * @return string primary key values or false if the command fails |
|
428 | 428 | * @since 2.0.4 |
429 | 429 | */ |
430 | 430 | public function insert($table, $columns) |
@@ -691,7 +691,7 @@ discard block |
||
691 | 691 | /** |
692 | 692 | * Returns the cache key for the specified table name. |
693 | 693 | * @param string $name the table name. |
694 | - * @return mixed the cache key. |
|
694 | + * @return string[] the cache key. |
|
695 | 695 | */ |
696 | 696 | protected function getCacheKey($name) |
697 | 697 | { |
@@ -15,7 +15,6 @@ |
||
15 | 15 | use yii\caching\Cache; |
16 | 16 | use yii\caching\CacheInterface; |
17 | 17 | use yii\caching\TagDependency; |
18 | -use yii\helpers\StringHelper; |
|
19 | 18 | |
20 | 19 | /** |
21 | 20 | * Schema is the base class for concrete DBMS-specific schema classes. |