Skip to content

Commit

Permalink
Apply fixes from StyleCI
Browse files Browse the repository at this point in the history
  • Loading branch information
StyleCIBot committed Sep 29, 2024
1 parent 1ab6149 commit 676d223
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
3 changes: 1 addition & 2 deletions src/ActiveQueryInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -636,11 +636,10 @@ public function one(): array|ActiveRecordInterface|null;
* @param string $name The relation name.
* @param ActiveRecordInterface[]|array[] $primaryModels Primary models.
*
* @return ActiveRecordInterface[]|array[] The related models.
*
* @throws Exception
* @throws InvalidArgumentException|InvalidConfigException|NotSupportedException|Throwable If {@see link()} is
* invalid.
* @return ActiveRecordInterface[]|array[] The related models.
*/
public function populateRelation(string $name, array &$primaryModels): array;
}
3 changes: 1 addition & 2 deletions src/ActiveQueryTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,8 @@ public function with(array|string ...$with): static
*
* @param array[] $rows The rows to be converted.
*
* @return ActiveRecordInterface[]|array[] The model instances.
*
* @throws InvalidConfigException
* @return ActiveRecordInterface[]|array[] The model instances.
*/
protected function createModels(array $rows): array
{
Expand Down
5 changes: 2 additions & 3 deletions src/ActiveRelationTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ trait ActiveRelationTrait
*/
private string|null $inverseOf = null;
/**
* @var array|ActiveQueryInterface|null the relation associated with the junction table.
* @var ActiveQueryInterface|array|null the relation associated with the junction table.
* @psalm-var array{string, ActiveQueryInterface, bool}|ActiveQueryInterface|null
*/
private array|ActiveQueryInterface|null $via = null;
Expand Down Expand Up @@ -636,11 +636,10 @@ private function getModelKeys(ActiveRecordInterface|array $model, array $propert
/**
* @param ActiveRecordInterface[]|array[] $primaryModels either array of AR instances or arrays.
*
* @return array[]
*
* @throws Exception
* @throws Throwable
* @throws \Yiisoft\Definitions\Exception\InvalidConfigException
* @return array[]
*/
private function findJunctionRows(array $primaryModels): array
{
Expand Down

0 comments on commit 676d223

Please sign in to comment.