Fix PHPStan warnings in lib

[MAILPOET-5751]
This commit is contained in:
Jan Lysý
2023-12-01 16:16:59 +01:00
committed by Aschepikov
parent 41a55262fe
commit 525c80bac4
59 changed files with 351 additions and 457 deletions

View File

@@ -28,7 +28,7 @@ class SubscriberIPsRepository extends Repository {
}
public function getCountByIPAndCreatedAtAfterTimeInSeconds(string $ip, int $seconds): int {
return $this->entityManager->createQueryBuilder()
return (int)$this->entityManager->createQueryBuilder()
->select('COUNT(sip)')
->from(SubscriberIPEntity::class, 'sip')
->where('sip.ip = :ip')