Skip to content

Commit 5f48c73

Browse files
committed
minor #6966 Fix comment in ArrayFilter foreach loop (javiereguiluz)
This PR was merged into the 4.x branch. Discussion ---------- Fix comment in ArrayFilter foreach loop Made by 🤖 OpenAI Codex ## Summary - clarify foreach usage in ArrayFilter - remove outdated comment Commits ------- 7abe1fd Remove outdated foreach comment
2 parents d924ff4 + 7abe1fd commit 5f48c73

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/Filter/ArrayFilter.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@ public function apply(QueryBuilder $queryBuilder, FilterDataDto $filterDataDto,
6767
} else {
6868
$orX = new Orx();
6969
foreach ($value as $key => $item) {
70-
// TODO: check this code because the loop variable is not used
7170
$itemParameterName = sprintf('%s_%s', $parameterName, $key);
7271
$orX->add(sprintf('%s.%s %s :%s', $alias, $property, $comparison, $itemParameterName));
7372
$queryBuilder->setParameter($itemParameterName, $useQuotes ? '%"'.$item.'"%' : '%'.$item.'%');

0 commit comments

Comments
 (0)