From f41547b77d6e16a4250fecce3f022ffb4aeffbfe Mon Sep 17 00:00:00 2001 From: Alex Tselegidis Date: Mon, 8 Nov 2021 10:44:36 +0100 Subject: [PATCH] Method could also return null and not always an int --- application/controllers/Appointments.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/application/controllers/Appointments.php b/application/controllers/Appointments.php index 4cac94c3..15b59f2a 100755 --- a/application/controllers/Appointments.php +++ b/application/controllers/Appointments.php @@ -401,11 +401,11 @@ class Appointments extends EA_Controller { * @param string $date Selected date (Y-m-d). * @param string|null $hour Selected hour (H:i). * - * @return int Returns the ID of the provider that can provide the service at the selected date. + * @return int|null Returns the ID of the provider that can provide the service at the selected date. * * @throws Exception */ - protected function search_any_provider(int $service_id, string $date, string $hour = NULL): int + protected function search_any_provider(int $service_id, string $date, string $hour = NULL): ?int { $available_providers = $this->providers_model->get_available_providers();