Method could also return null and not always an int
This commit is contained in:
parent
6cb0714c00
commit
f41547b77d
1 changed files with 2 additions and 2 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in a new issue