From f0acd506bba75140ca19eb82f042bbafb78c79cc Mon Sep 17 00:00:00 2001 From: objecttothis Date: Fri, 10 Feb 2023 00:33:19 +0400 Subject: [PATCH] Match model function signatures to parent - update method --- app/Models/Receiving.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Models/Receiving.php b/app/Models/Receiving.php index 1bb7917f9..ec45dfa9c 100644 --- a/app/Models/Receiving.php +++ b/app/Models/Receiving.php @@ -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); } -} \ No newline at end of file +}