Upgrade PHPStan to version 1.0

[MAILPOET-3932]
This commit is contained in:
Oluwaseun Olorunsola
2022-01-11 15:57:27 +01:00
committed by Veljko V
parent 5e5beb1402
commit 092f6ea9ff
10 changed files with 6022 additions and 71 deletions

View File

@@ -26,7 +26,7 @@ class BatchIterator implements \Iterator, \Countable {
$this->batchSize = (int)$batchSize;
}
public function rewind() {
public function rewind(): void {
$this->lastProcessedId = 0;
}
@@ -44,15 +44,15 @@ class BatchIterator implements \Iterator, \Countable {
return null;
}
public function next() {
public function next(): void {
$this->lastProcessedId = $this->batchLastId;
}
public function valid() {
public function valid(): bool {
return $this->count() > 0;
}
public function count() {
public function count(): int {
return $this->getSubscribers()->count();
}