Skip to content

Commit

Permalink
Fix psalm issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Tigrov committed Jun 28, 2024
1 parent de5a50a commit 94794c0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 15 deletions.
12 changes: 1 addition & 11 deletions src/ActiveQuery.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
use Yiisoft\Db\QueryBuilder\QueryBuilderInterface;
use Yiisoft\Definitions\Exception\CircularReferenceException;
use Yiisoft\Definitions\Exception\NotInstantiableException;
use Yiisoft\Factory\NotFoundException;

use function array_column;
use function array_combine;
Expand Down Expand Up @@ -161,7 +160,6 @@ public function each(int $batchSize = 100): BatchQueryResultInterface
* @throws CircularReferenceException
* @throws Exception
* @throws InvalidConfigException
* @throws NotFoundException
* @throws NotInstantiableException
* @throws Throwable
* @throws \Yiisoft\Definitions\Exception\InvalidConfigException
Expand Down Expand Up @@ -285,7 +283,6 @@ public function populate(array $rows, Closure|string|null $indexBy = null): arra
* @throws CircularReferenceException
* @throws Exception
* @throws InvalidConfigException
* @throws NotFoundException
* @throws NotInstantiableException
*
* @return array The distinctive models.
Expand Down Expand Up @@ -471,7 +468,6 @@ public function resetJoinWith(): void
/**
* @throws CircularReferenceException
* @throws InvalidConfigException
* @throws NotFoundException
* @throws NotInstantiableException
* @throws \Yiisoft\Definitions\Exception\InvalidConfigException
*/
Expand Down Expand Up @@ -550,7 +546,6 @@ public function innerJoinWith(array|string $with, array|bool $eagerLoading = tru
*
* @throws CircularReferenceException
* @throws InvalidConfigException
* @throws NotFoundException
* @throws NotInstantiableException
* @throws \Yiisoft\Definitions\Exception\InvalidConfigException
*/
Expand Down Expand Up @@ -633,7 +628,6 @@ private function getJoinType(array|string $joinType, string $name): string
*
* @throws CircularReferenceException
* @throws InvalidConfigException
* @throws NotFoundException
* @throws NotInstantiableException
*/
private function getTableNameAndAlias(): array
Expand Down Expand Up @@ -670,9 +664,8 @@ private function getTableNameAndAlias(): array
* @param string $joinType The join type.
*
* @throws CircularReferenceException
* @throws NotFoundException
* @throws NotInstantiableException
* @throws \Yiisoft\Definitions\Exception\InvalidConfigException
* @throws InvalidConfigException
*/
private function joinWithRelation(ActiveQueryInterface $parent, ActiveQueryInterface $child, string $joinType): void
{
Expand Down Expand Up @@ -837,7 +830,6 @@ public function alias(string $alias): self
/**
* @throws CircularReferenceException
* @throws InvalidArgumentException
* @throws NotFoundException
* @throws NotInstantiableException
* @throws \Yiisoft\Definitions\Exception\InvalidConfigException
*/
Expand All @@ -852,7 +844,6 @@ public function getTablesUsedInFrom(): array

/**
* @throws CircularReferenceException
* @throws NotFoundException
* @throws NotInstantiableException
* @throws \Yiisoft\Definitions\Exception\InvalidConfigException
*/
Expand Down Expand Up @@ -918,7 +909,6 @@ public function findAll(mixed $condition): array
* @throws CircularReferenceException
* @throws Exception
* @throws InvalidArgumentException
* @throws NotFoundException
* @throws NotInstantiableException
*/
protected function findByCondition(mixed $condition): static
Expand Down
4 changes: 0 additions & 4 deletions src/ActiveQueryInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
use Yiisoft\Db\Query\QueryInterface;
use Yiisoft\Definitions\Exception\CircularReferenceException;
use Yiisoft\Definitions\Exception\NotInstantiableException;
use Yiisoft\Factory\NotFoundException;

/**
* Defines the common interface to be implemented by active record query classes.
Expand Down Expand Up @@ -274,7 +273,6 @@ public function viaTable(string $tableName, array $link, callable $callable = nu
* @param string $alias The table alias.
*
* @throws CircularReferenceException
* @throws NotFoundException
* @throws NotInstantiableException
* @throws \Yiisoft\Definitions\Exception\InvalidConfigException
*/
Expand All @@ -287,7 +285,6 @@ public function alias(string $alias): self;
*
* @throws CircularReferenceException
* @throws InvalidArgumentException
* @throws NotFoundException
* @throws NotInstantiableException
* @throws \Yiisoft\Definitions\Exception\InvalidConfigException
*/
Expand Down Expand Up @@ -591,7 +588,6 @@ public function getLink(): array;
/**
* @throws CircularReferenceException
* @throws InvalidConfigException
* @throws NotFoundException
* @throws NotInstantiableException
* @return ActiveRecordInterface The model instance associated with this query.
*/
Expand Down

0 comments on commit 94794c0

Please sign in to comment.