@@ -470,7 +470,7 @@ |
||
| 470 | 470 | } |
| 471 | 471 | |
| 472 | 472 | /** |
| 473 | - * @param array $associations |
|
| 473 | + * @param Association[] $associations |
|
| 474 | 474 | * @return Collection |
| 475 | 475 | */ |
| 476 | 476 | protected function createRelations(array $associations = []): Collection |
@@ -9,6 +9,7 @@ discard block |
||
| 9 | 9 | namespace flipbox\craft\element\lists\relationships; |
| 10 | 10 | |
| 11 | 11 | use Craft; |
| 12 | +use Tightenco\Collect\Support\Collection; |
|
| 12 | 13 | use craft\base\ElementInterface; |
| 13 | 14 | use craft\base\Field; |
| 14 | 15 | use craft\elements\db\ElementQuery; |
@@ -17,7 +18,6 @@ discard block |
||
| 17 | 18 | use flipbox\craft\element\lists\queries\AssociationQuery; |
| 18 | 19 | use flipbox\craft\element\lists\records\Association; |
| 19 | 20 | use flipbox\organizations\records\UserAssociation; |
| 20 | -use Tightenco\Collect\Support\Collection; |
|
| 21 | 21 | use yii\base\BaseObject; |
| 22 | 22 | use yii\base\Exception; |
| 23 | 23 | use yii\base\UnknownPropertyException; |