From 8b02cbb3699880bdd6e38852a03a6420e739715e Mon Sep 17 00:00:00 2001 From: Alex Tselegidis Date: Fri, 29 Oct 2021 13:10:54 +0200 Subject: [PATCH] Added missing type hints for method params --- application/models/Appointments_model.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/application/models/Appointments_model.php b/application/models/Appointments_model.php index a348a5bf..1383302e 100644 --- a/application/models/Appointments_model.php +++ b/application/models/Appointments_model.php @@ -259,7 +259,7 @@ class Appointments_model extends EA_Model { // Check if the required field is part of the appointment data. $appointment = $query->row_array(); - + $this->cast($appointment); if ( ! array_key_exists($field, $appointment)) @@ -426,7 +426,7 @@ class Appointments_model extends EA_Model { * * @return int Returns the number of appointments that match the provided criteria. */ - public function get_other_service_attendants_number(DateTime $start, DateTime $end, int $service_id, $provider_id, $exclude_appointment_id = NULL): int + public function get_other_service_attendants_number(DateTime $start, DateTime $end, int $service_id, int $provider_id, int $exclude_appointment_id = NULL): int { if ($exclude_appointment_id) {