Skip to content

Commit

Permalink
优化代码
Browse files Browse the repository at this point in the history
  • Loading branch information
Yurunsoft committed Jan 7, 2022
1 parent b5a8874 commit 93488a5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
3 changes: 1 addition & 2 deletions src/Db/Drivers/PdoPgsql/Statement.php
Original file line number Diff line number Diff line change
Expand Up @@ -303,8 +303,7 @@ public function rewind(): void
/**
* {@inheritDoc}
*/
#[\ReturnTypeWillChange]
public function valid()
public function valid(): bool
{
return false !== $this->current();
}
Expand Down
3 changes: 1 addition & 2 deletions src/Db/Drivers/Swoole/Statement.php
Original file line number Diff line number Diff line change
Expand Up @@ -375,8 +375,7 @@ public function rewind(): void
/**
* {@inheritDoc}
*/
#[\ReturnTypeWillChange]
public function valid()
public function valid(): bool
{
return false !== $this->current();
}
Expand Down
4 changes: 1 addition & 3 deletions src/Db/Query/Builder/BaseBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit 93488a5

Please sign in to comment.