Method could also return null and not always an int

This commit is contained in:
Alex Tselegidis 2021-11-08 10:44:36 +01:00
parent 6cb0714c00
commit f41547b77d
1 changed files with 2 additions and 2 deletions

View File

@ -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();