From c77d1c208040caf443fee618e975321f8b46b21c Mon Sep 17 00:00:00 2001 From: Thomas Portelange Date: Wed, 25 Oct 2023 11:07:09 +0200 Subject: [PATCH] add return type, remove unecessary reset --- code/SQLite3Query.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/code/SQLite3Query.php b/code/SQLite3Query.php index 9047ef6..0fc5b18 100644 --- a/code/SQLite3Query.php +++ b/code/SQLite3Query.php @@ -56,14 +56,13 @@ class SQLite3Query extends Query /** * @todo This looks terrible but there is no SQLite3::get_num_rows() implementation */ - private function countRecords() + private function countRecords(): int { // Some queries are not iterable using fetchArray like CREATE statement if (!$this->handle->numColumns()) { return 0; } - $this->handle->reset(); $c = 0; while ($this->handle->fetchArray()) { $c++;