From f35936cea6d42b2eec1558ba368ac11a542cc5ec Mon Sep 17 00:00:00 2001 From: Victor Westerlund Date: Mon, 8 Jan 2024 14:27:10 +0100 Subject: [PATCH] fix: fix return types for executor methods --- src/MySQL.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/MySQL.php b/src/MySQL.php index 1357218..2c8b921 100644 --- a/src/MySQL.php +++ b/src/MySQL.php @@ -173,7 +173,7 @@ */ // Create Prepared Statament for SELECT with optional WHERE filters - public function select(array|string|null $columns = null): mysqli_result { + public function select(array|string|null $columns = null): mysqli_result|bool { $this->throw_if_no_table(); // Create array of columns from CSV @@ -206,7 +206,7 @@ } // Create Prepared Statement for UPDATE using PRIMARY KEY as anchor - public function update(array $entity): mysqli_result { + public function update(array $entity): mysqli_result|bool { $this->throw_if_no_table(); // Make constraint for table model if defined @@ -238,7 +238,7 @@ } // Create Prepared Statemt for INSERT - public function insert(array $values): mysqli_result { + public function insert(array $values): mysqli_result|bool { $this->throw_if_no_table(); // A value for each column in table model must be provided