Skip to content

Commit

Permalink
Remove unnecessary psalm annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
Tigrov committed Apr 7, 2024
1 parent fa0ebae commit 822a214
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 12 deletions.
7 changes: 1 addition & 6 deletions src/Query/Query.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,7 @@
*/
class Query implements QueryInterface
{
/**
* @psalm-var SelectValue $select
*/
/** @psalm-var SelectValue $select */
protected array $select = [];
protected string|null $selectOption = null;
protected bool|null $distinct = null;
Expand Down Expand Up @@ -184,9 +182,6 @@ public function andHaving(array|string|ExpressionInterface $condition, array $pa
return $this;
}

/**
* @psalm-param SelectValue|scalar|ExpressionInterface $columns
*/
public function addSelect(array|bool|float|int|string|ExpressionInterface $columns): static
{
if ($this->select === []) {
Expand Down
6 changes: 0 additions & 6 deletions src/QueryBuilder/AbstractDQLQueryBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
use Yiisoft\Db\Expression\ExpressionBuilderInterface;
use Yiisoft\Db\Expression\ExpressionInterface;
use Yiisoft\Db\Helper\DbStringHelper;
use Yiisoft\Db\Query\QueryPartsInterface;
use Yiisoft\Db\QueryBuilder\Condition\HashCondition;
use Yiisoft\Db\QueryBuilder\Condition\Interface\ConditionInterface;
use Yiisoft\Db\QueryBuilder\Condition\SimpleCondition;
Expand Down Expand Up @@ -44,8 +43,6 @@
* It's used to query data from a database.
*
* @link https://en.wikipedia.org/wiki/Data_query_language
*
* @psalm-import-type SelectValue from QueryPartsInterface
*/
abstract class AbstractDQLQueryBuilder implements DQLQueryBuilderInterface
{
Expand Down Expand Up @@ -335,9 +332,6 @@ public function buildOrderByAndLimit(
return $sql;
}

/**
* @psalm-param SelectValue $columns
*/
public function buildSelect(
array $columns,
array &$params,
Expand Down

0 comments on commit 822a214

Please sign in to comment.