mirror of
https://github.com/Karaka-Management/oms-FleetManagement.git
synced 2026-02-07 17:08:40 +00:00
fix tests
This commit is contained in:
parent
0e131f9f27
commit
2aae496726
|
|
@ -215,12 +215,12 @@ final class BackendController extends Controller
|
|||
|
||||
$view->data['inspections'] = $inspections;
|
||||
$view->data['vehicles'] = VehicleMapper::getAll()
|
||||
->where('id', \array_map(function (Inspection $inspection) { return $inspection->reference; }, $vehicles))
|
||||
->where('id', \array_map(function (Inspection $inspection) : int { return $inspection->reference; }, $vehicles))
|
||||
->executeGetArray();
|
||||
|
||||
$view->data['drivers'] = DriverMapper::getAll()
|
||||
->with('account')
|
||||
->where('id', \array_map(function (Inspection $inspection) { return $inspection->reference; }, $drivers))
|
||||
->where('id', \array_map(function (Inspection $inspection) : int { return $inspection->reference; }, $drivers))
|
||||
->executeGetArray();
|
||||
|
||||
return $view;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user