diff --git a/src/Presentation/Api/V1/Http/Requests/Employees/EmployeesIndexRequest.php b/src/Presentation/Api/V1/Http/Requests/Employees/EmployeesIndexRequest.php index 0521bb2..37a6a6b 100644 --- a/src/Presentation/Api/V1/Http/Requests/Employees/EmployeesIndexRequest.php +++ b/src/Presentation/Api/V1/Http/Requests/Employees/EmployeesIndexRequest.php @@ -54,12 +54,10 @@ final class EmployeesIndexRequest extends FormRequest $service = $this->filled('serviceId') ? new ServiceId($this->string('serviceId')->value()) : null; $sites = []; - $rawSiteIds = $this->input('siteIds'); - if (is_array($rawSiteIds)) { - foreach ($rawSiteIds as $s) { - if (is_string($s) && $s !== '') { - $sites[] = new SiteId($s); - } + $rawSiteIds = $this->array('siteIds'); + foreach ($rawSiteIds as $s) { + if (is_string($s) && $s !== '') { + $sites[] = new SiteId($s); } }