diff --git a/src/Db/Drivers/PdoPgsql/Statement.php b/src/Db/Drivers/PdoPgsql/Statement.php index 96b2707..e7fd90a 100644 --- a/src/Db/Drivers/PdoPgsql/Statement.php +++ b/src/Db/Drivers/PdoPgsql/Statement.php @@ -303,8 +303,7 @@ public function rewind(): void /** * {@inheritDoc} */ - #[\ReturnTypeWillChange] - public function valid() + public function valid(): bool { return false !== $this->current(); } diff --git a/src/Db/Drivers/Swoole/Statement.php b/src/Db/Drivers/Swoole/Statement.php index 1629565..0f15799 100644 --- a/src/Db/Drivers/Swoole/Statement.php +++ b/src/Db/Drivers/Swoole/Statement.php @@ -375,8 +375,7 @@ public function rewind(): void /** * {@inheritDoc} */ - #[\ReturnTypeWillChange] - public function valid() + public function valid(): bool { return false !== $this->current(); } diff --git a/src/Db/Query/Builder/BaseBuilder.php b/src/Db/Query/Builder/BaseBuilder.php index 6246725..2c01b78 100644 --- a/src/Db/Query/Builder/BaseBuilder.php +++ b/src/Db/Query/Builder/BaseBuilder.php @@ -45,10 +45,8 @@ protected function parseField(array $fields): string /** * limit. - * - * @return string */ - protected function parseLimit(?int $offset, ?int $limit) + protected function parseLimit(?int $offset, ?int $limit): string { if (null === $limit) {