Skip to content

Commit 29389e1

Browse files
authored
LYNX-49: Replaced usage of undefined array_first function with reset function
- array_first function is defined in weew/helpers-array package that is not direct dependency
1 parent 0ff4f43 commit 29389e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/internal/Magento/Framework/Api/SearchCriteria/CollectionProcessor/FilterProcessor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ private function checkFromTo(&$fields, &$conditions)
140140
$_fields = array_unique($fields);
141141
$_conditions = [];
142142
foreach ($conditions as $condition) {
143-
$_conditions[array_key_first($condition)] = array_first($condition);
143+
$_conditions[array_key_first($condition)] = reset($condition);
144144
}
145145
if ((count($_fields) == 1) && (count($_conditions) == 2)
146146
&& isset($_conditions['from']) && isset($_conditions['to'])

0 commit comments

Comments
 (0)