From 12a6fe0a7c84b084d523493f250c738fbfc9f224 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Thu, 25 Apr 2024 13:34:46 +0000 Subject: [PATCH] fix tests --- Controller/BackendController.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Controller/BackendController.php b/Controller/BackendController.php index d018567..4e5eaf1 100755 --- a/Controller/BackendController.php +++ b/Controller/BackendController.php @@ -184,6 +184,7 @@ final class BackendController extends Controller $view->setTemplate('/Modules/FleetManagement/Theme/Backend/inspection-list'); $view->data['nav'] = $this->app->moduleManager->get('Navigation')->createNavigationMid(1003504001, $request, $response); + /** @var \Modules\FleetManagement\Models\Inspection[] $vehicles */ $vehicles = InspectionMapper::getAll() ->with('type') ->with('type/l11n') @@ -192,6 +193,7 @@ final class BackendController extends Controller ->limit(100) ->executeGetArray(); + /** @var \Modules\FleetManagement\Models\Inspection[] $drivers */ $drivers = DriverInspectionMapper::getAll() ->with('type') ->with('type/l11n') @@ -200,6 +202,7 @@ final class BackendController extends Controller ->limit(100) ->executeGetArray(); + /** @var array{type:string, inspection:\Modules\FleetManagement\Models\Inspection} */ $inspections = []; foreach ($vehicles as $inspection) { $inspections[] = ['type' => 'vehicle', 'inspection' => $inspection];