Skip to content

Commit 93488a5

Browse files
committed
优化代码
1 parent b5a8874 commit 93488a5

3 files changed

Lines changed: 3 additions & 7 deletions

File tree

src/Db/Drivers/PdoPgsql/Statement.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -303,8 +303,7 @@ public function rewind(): void
303303
/**
304304
* {@inheritDoc}
305305
*/
306-
#[\ReturnTypeWillChange]
307-
public function valid()
306+
public function valid(): bool
308307
{
309308
return false !== $this->current();
310309
}

src/Db/Drivers/Swoole/Statement.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -375,8 +375,7 @@ public function rewind(): void
375375
/**
376376
* {@inheritDoc}
377377
*/
378-
#[\ReturnTypeWillChange]
379-
public function valid()
378+
public function valid(): bool
380379
{
381380
return false !== $this->current();
382381
}

src/Db/Query/Builder/BaseBuilder.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,8 @@ protected function parseField(array $fields): string
4545

4646
/**
4747
* limit.
48-
*
49-
* @return string
5048
*/
51-
protected function parseLimit(?int $offset, ?int $limit)
49+
protected function parseLimit(?int $offset, ?int $limit): string
5250
{
5351
if (null === $limit)
5452
{

0 commit comments

Comments
 (0)