From 2aae4967263f2b0d41e58a1521b8f9b546d75866 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Thu, 25 Apr 2024 03:26:52 +0000 Subject: [PATCH] fix tests --- Controller/BackendController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Controller/BackendController.php b/Controller/BackendController.php index 582a3eb..d018567 100755 --- a/Controller/BackendController.php +++ b/Controller/BackendController.php @@ -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;