Skip to content

Commit

Permalink
Fix PSalm
Browse files Browse the repository at this point in the history
  • Loading branch information
byjg committed Nov 11, 2024
1 parent 9d7ec9c commit 0224703
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/WhereTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ protected function getWhere(): ?array
$where[] = ["filter" => "{$from}.deleted_at is null", "params" => []];
}

/** @psalm-suppress RedundantCondition This is a Trait, and $this->join is defined elsewhere */
if (isset($this->join)) {
foreach ($this->join as $item) {
if (!($item['table'] instanceof QueryBasic) && !in_array($item['table'], $tableList) && ORM::getMapper($item['table'])?->isSoftDeleteEnabled() === true) {
Expand Down

0 comments on commit 0224703

Please sign in to comment.