Skip to content

Commit

Permalink
Solve SA issue
Browse files Browse the repository at this point in the history
  • Loading branch information
VincentLanglet committed Aug 20, 2024
1 parent 45e294f commit cfd0886
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Persisters/Entity/BasicEntityPersister.php
Original file line number Diff line number Diff line change
Expand Up @@ -835,7 +835,10 @@ public function count(array|Criteria $criteria = []): int
? $this->expandCriteriaParameters($criteria)
: $this->expandParameters($criteria);

return (int) $this->conn->executeQuery($sql, $params, $types)->fetchOne();
/** @psalm-var 0|positive-int $count */
$count = (int) $this->conn->executeQuery($sql, $params, $types)->fetchOne();

return $count;
}

/**
Expand Down

0 comments on commit cfd0886

Please sign in to comment.