From ae092d5f7e275a6d4d6d29c4bda0d7fe668e2211 Mon Sep 17 00:00:00 2001 From: campbell-m <87438215+campbell-m@users.noreply.github.com> Date: Tue, 2 Jul 2024 18:36:56 +0100 Subject: [PATCH] Add type declarations --- web/lib/MRBS/DBStatement.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/lib/MRBS/DBStatement.php b/web/lib/MRBS/DBStatement.php index 153da59036..bbe1027839 100644 --- a/web/lib/MRBS/DBStatement.php +++ b/web/lib/MRBS/DBStatement.php @@ -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(); }