From 0b7889360ee7262dbe2432b847a619cd7e713633 Mon Sep 17 00:00:00 2001 From: Seamus Lee Date: Mon, 14 Jun 2021 05:05:18 +0000 Subject: [PATCH] [php8-compact] Fix apiv4 tests in php8 by not incrementing an array --- Civi/Api4/Query/SqlFunction.php | 1 - 1 file changed, 1 deletion(-) diff --git a/Civi/Api4/Query/SqlFunction.php b/Civi/Api4/Query/SqlFunction.php index ef5d7747f2..c6c4f93e4e 100644 --- a/Civi/Api4/Query/SqlFunction.php +++ b/Civi/Api4/Query/SqlFunction.php @@ -97,7 +97,6 @@ abstract class SqlFunction extends SqlExpression { $expr = SqlExpression::convert($item, FALSE, $mustBe, $cantBe); $this->fields = array_merge($this->fields, $expr->getFields()); $captured[] = $expr; - $captured++; // Keep going if we have a comma indicating another expression follows if (count($captured) < $limit && substr($arg, 0, 1) === ',') { $arg = ltrim(substr($arg, 1)); -- 2.25.1