Minor type safety fix in ScheduleController.

This commit is contained in:
Buster "Silver Eagle" Neece 2021-07-25 16:09:07 -05:00
parent 56b19f864c
commit b721ab28e8
No known key found for this signature in database
GPG Key ID: 6D9E12FF03411F4E
1 changed files with 1 additions and 1 deletions

View File

@ -77,7 +77,7 @@ class ScheduleController extends AbstractStationApiCrudController
}
);
$rows = $request->getQueryParam('rows', 5);
$rows = (int)$request->getQueryParam('rows', 5);
$events = array_slice($events, 0, $rows);
return $response->withJson($events);