File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
app/code/Magento/Rule/Model/Condition/Sql Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -166,9 +166,9 @@ protected function _getMappedSqlCondition(
166
166
$ bindValue = $ condition ->getBindArgumentValue ();
167
167
$ expression = $ value . $ this ->_connection ->quoteInto ($ sql , $ bindValue );
168
168
169
- // values for multiselect attributes can be saved in comma separated format
169
+ // values for multiselect attributes can be saved in comma- separated format
170
170
// below is a solution for matching such conditions with selected values
171
- if (in_array ($ conditionOperator , ['() ' , '{} ' ]) && is_array ( $ bindValue )) {
171
+ if (is_array ( $ bindValue ) && \ in_array ($ conditionOperator , ['() ' , '{} ' ], true )) {
172
172
foreach ($ bindValue as $ item ) {
173
173
$ expression .= $ this ->_connection ->quoteInto (
174
174
" OR (FIND_IN_SET (?, {$ this ->_connection ->quoteIdentifier ($ argument )}) > 0) " ,
@@ -184,10 +184,11 @@ protected function _getMappedSqlCondition(
184
184
185
185
/**
186
186
* @param Combine $combine
187
- * @param string $value
188
- * @param bool $isDefaultStoreUsed
187
+ * @param string $value
188
+ * @param bool $isDefaultStoreUsed
189
189
* @return string
190
190
* @SuppressWarnings(PHPMD.NPathComplexity)
191
+ * @throws \Magento\Framework\Exception\LocalizedException
191
192
*/
192
193
protected function _getMappedSqlCombination (
193
194
Combine $ combine ,
You can’t perform that action at this time.
0 commit comments