Skip to content

Commit

Permalink
Set "numeric-string" type for the @return annotation in `Result::ro…
Browse files Browse the repository at this point in the history
…wCount()`
  • Loading branch information
phansys committed Feb 6, 2023
1 parent e543ade commit dee869b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Driver/Result.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ public function fetchFirstColumn(): array;
*
* If the number of rows exceeds {@see PHP_INT_MAX}, it might be returned as string if the driver supports it.
*
* @return int|numeric-string
*
* @throws Exception
*/
public function rowCount(): int|string;
Expand Down
2 changes: 2 additions & 0 deletions src/Result.php
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,8 @@ public function iterateColumn(): Traversable
*
* If the number of rows exceeds {@see PHP_INT_MAX}, it might be returned as string if the driver supports it.
*
* @return int|numeric-string
*
* @throws Exception
*/
public function rowCount(): int|string
Expand Down
2 changes: 2 additions & 0 deletions src/Statement.php
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,8 @@ public function executeQuery(): Result
*
* If the number of rows exceeds {@see PHP_INT_MAX}, it might be returned as string if the driver supports it.
*
* @return int|numeric-string
*
* @throws Exception
*/
public function executeStatement(): int|string
Expand Down

0 comments on commit dee869b

Please sign in to comment.