fix: fix return types for executor methods

This commit is contained in:
Victor Westerlund 2024-01-08 14:27:10 +01:00
parent 4ffa2ee24f
commit f35936cea6

View file

@ -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