From e72c881eebf5b8624f579ceb62b9a59f337be4ee Mon Sep 17 00:00:00 2001 From: Matthias Hunstock Date: Fri, 16 Jun 2023 10:06:38 +0200 Subject: [PATCH] PHP: remove usage of each(), fixes #240 --- src/Application/Controller/Tickets.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Application/Controller/Tickets.php b/src/Application/Controller/Tickets.php index 092bb9d..ab5e717 100644 --- a/src/Application/Controller/Tickets.php +++ b/src/Application/Controller/Tickets.php @@ -274,8 +274,7 @@ protected function evaluateSearch($fields, $operators, $values) { $mainCondition = $subCondition = []; $mainParams = $subParams = []; - reset($fields); - while (list($i, $key) = each($fields)) { + foreach ($fields as $i => $key) { $condition = ''; $params = [];