Skip to content

Commit

Permalink
Add type declarations
Browse files Browse the repository at this point in the history
  • Loading branch information
campbell-m committed Jul 2, 2024
1 parent e20eb54 commit ae092d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions web/lib/MRBS/DBStatement.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,13 @@ public function all_rows_keyed() : array
}

// Return the number of rows returned by a statement from query().
public function count()
public function count() : int
{
return $this->statement->rowCount();
}

// Returns the number of fields in a statement.
public function num_fields()
public function num_fields() : int
{
return $this->statement->columnCount();
}
Expand Down

0 comments on commit ae092d5

Please sign in to comment.