Minor type safety fix in ScheduleController.
This commit is contained in:
parent
56b19f864c
commit
b721ab28e8
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue