Skip to content

Commit

Permalink
Merge pull request #8 from veewee/psalm520
Browse files Browse the repository at this point in the history
Deal with psalm v5.20
  • Loading branch information
veewee authored Jan 19, 2024
2 parents 69dd5d2 + 535451a commit 8017153
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ public function findMessageIds(SearchCriteria $criteria): array
default => $column,
};
$sortDirection = $criteria->sortDirection();

/** @psalm-suppress RiskyTruthyFalsyComparison */
($sortColumn && $sortDirection) ?
$queryBuilder->orderBy('m.'.$sortColumn, $sortDirection) :
$queryBuilder->orderBy('m.created_at', 'DESC');
Expand Down

0 comments on commit 8017153

Please sign in to comment.