Match model function signatures to parent

- update method
This commit is contained in:
objecttothis
2023-02-10 00:33:19 +04:00
committed by Steve Ireland
parent b5c36f9c4d
commit f0acd506bb

View File

@@ -63,7 +63,7 @@ class Receiving extends Model
return ($builder->get()->getNumRows() == 1);
}
public function update(int $receiving_id = NULL, array $receiving_data = NULL): bool
public function update($receiving_id = NULL, $receiving_data = NULL): bool
{
$builder = $this->db->table('receivings');
$builder->where('receiving_id', $receiving_id);
@@ -331,4 +331,4 @@ class Receiving extends Model
$this->db->query($sql);
}
}
}